Using UIScrollView
When you want to let the user scroll around your view, you typically make your view the subview of a UIScrollView, as shown in Figure 6.4.
Figure 6.4 Object diagram
In HypnosisterAppDelegate.m, put your view inside a scroll view and add that scroll view to the window:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { CGRect wholeWindow = [[self window] bounds]; UIScrollView *scrollView ...
Get iOS Programming: The Big Nerd Ranch Guide, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.