Changes

Jump to: navigation, search

An Example iOS 7 UIPageViewController Application

275 bytes removed, 13:38, 15 April 2014
no edit summary
{
NSString *contentString = [[NSString alloc]
initWithFormat:@"&lt;html><&gt;&lt;head><&gt;&lt;/head><&gt;&lt;body><&gt;&lt;br><&gt;&lt;h1>&gt;Chapter %d<&lt;/h1><&gt;&lt;p>&gt;This is the page %d of content displayed using UIPageViewController in iOS 7.<&lt;/p><&gt;&lt;/body><&gt;&lt;/html>&gt;", i, i];
[pageStrings addObject:contentString];
}
With the data source implemented, the next step is to create and initialize an instance of the UIPageViewController class.
 
<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 ==

Navigation menu