Like @davew, peeking browsing should use a UIScrollView . I was also looking for a way to use the UIPageViewController , but could not find any resource.
Using UIScrollView to make this function less painful than I imagined.
Here is a simple example to see the basic controls in action.

First: make a UIViewController , then in the viewDidLoad method add the following code:
float pad = 20; NSArray* items = @[@"One", @"Two", @"Three", @"Four"]; self.view.backgroundColor = [UIColor greenColor]; UIScrollView* pageScrollView = [[UIScrollView alloc] initWithFrame:self.view.frame]; pageScrollView.opaque = NO; pageScrollView.showsHorizontalScrollIndicator = NO; pageScrollView.clipsToBounds = NO; pageScrollView.pagingEnabled = YES; adjustFrame(pageScrollView, pad, deviceH()/4, -pad*3, -deviceH()/2); [self.view addSubview: pageScrollView]; float w = pageScrollView.frame.size.width; for(int i = 0; i < [items count]; i++){ UIView* view = [[UIView alloc] initWithFrame:pageScrollView.bounds]; view.backgroundColor = [UIColor blueColor]; setFrameX(view, (i*w)+pad); setFrameW(view, w-(pad*1)); [pageScrollView addSubview:view]; } pageScrollView.contentSize = CGSizeMake(w*[items count], pageScrollView.frame.size.height);
FYI, I used these use functions to adjust the size of the presentation frames; I'm sick of changing them manually using 3+ lines of code.
Update
I wrapped this code in a simple ViewController and put it on GitHub
https://github.com/kjantzer/peek-page-view-controller
This is by no means complete, but it is the beginning of the work.
Kevin jantzer
source share