Changes

Jump to: navigation, search

An Example iOS 7 UIPageViewController Application

338 bytes added, 21:21, 14 April 2014
Creating the Data Model
{
NSString *contentString = [[NSString alloc]
initWithFormat:@"<html><head></head><body><br><h1>Chapter %d</h1><p>This is the page %d of content displayed using UIPageViewController in iOS 7.</p></body></html>", i, i]; [pageStrings addObject:contentString]; } _pageContent = [[NSArray alloc] initWithArray:pageStrings];}..- (void)viewDidLoad{ [super viewDidLoad]; [self createContentPages];}</pre> == Running the UIPageViewController Application ==
Click on the Run button to compile and launch the application in the iOS iPhone Simulator or on a physical device. Once loaded, the first content page should appear. A right to left gesture motion on the screen will cause the page to transition to the second page of content and reversing the gesture direction will page backwards:

Navigation menu