Questions tagged [uipageviewcontroller]

UIPageViewController is an iOS container view controller that manages the display one of one or more content view controllers. It provides the ability the change of the controller via swipe gestures and also supports animated transitions.

UIPageViewController is a container view controller that manages navigation between pages of content, where each page is managed by a child view controller.

A UIPageViewController lets the user navigate between pages of content, where each page is managed by its own view controller object. Navigation can be controlled programmatically or directly by the user using swipe gestures. When navigating from page to page, the page view controller uses the transition that you specify to animate the change.

Important

In tvOS, the UIPageViewController class provides only a way to swipe between full-screen content pages. Unlike in iOS, a user cannot interact with or move focus between items on each page.

References:

2071 questions
14
votes
6 answers

How to remove the bottom gap of UIPageViewController

I am using UIPageViewController to show images full screen, the UIViewController which is added to UIPageController as a sub view / child has the images being showed using ImageView. Problem is the images arent comming fullscreen, instead the…
vishal dharankar
  • 7,536
  • 7
  • 57
  • 93
13
votes
2 answers

Using UIPageViewController and making the view look like it's flapping

I'm wondering if there's a way to animate the very first view in UIPageViewController so that it looks like the one of the page corners is flapping a little bit? As if a little breeze bristles the pages when you first arrive on this particular…
Jonas Gardner
  • 2,458
  • 5
  • 22
  • 28
13
votes
5 answers

Swipe to delete on a tableView that is inside a pageViewController

I've got a tableView inside of a pageViewController and when swiping on a cell to bring up the option to delete the cell the gesture is only recognized under certain circumstances, say you swiped very quickly and aggressively. I imagine this is…
13
votes
3 answers

Horizontal padding between UIPageViewController child view controllers

I am using UIPageViewController to display images that are embedded in child view controllers. NSDictionary *options = [NSDictionary dictionaryWithObject: [NSNumber numberWithInteger:UIPageViewControllerSpineLocationMin] forKey:…
denvdancsk
  • 3,033
  • 2
  • 26
  • 41
13
votes
2 answers

UIPageViewController not resizing its child view controllers

I have a view controller set up programmatically which has a child UIPageViewController. This displays various other view controllers that are also set up programmatically. These view controllers' views have translatesAutoresizingMaskIntoConstraints…
13
votes
4 answers

UIPageViewController + Auto Layout rotation issue

I have a UIPageViewController with a simple UIViewController inside of it. If the the UIViewController has no subviews, its view resizes correctly when rotated. (Solid green background). If the the UIViewController has a subview with a fixed…
Senior
  • 2,259
  • 1
  • 20
  • 31
13
votes
4 answers

UISlider inside UIPageViewController

I have a PageViewController which is initialized like this: self.pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll …
13
votes
1 answer

Multiple Visible Pages in Scroll Style UIPageViewController

So what I'm looking to do is have a UIPageViewController that will end up displaying three view controller vies, one fully visible and then two as previews to the right and left. An example would be the iOS6 App Store: Is doing this using a…
ultramiraculous
  • 1,062
  • 14
  • 21
13
votes
1 answer

Preloading pages of UIPageViewController

I can't find a good solution to having the UIPageViewController preload the surrounding ViewControllers. Right now what happens is when the user starts to turn the page, nothing happens, the code calls - (UIViewController…
Eric
  • 5,671
  • 5
  • 31
  • 42
12
votes
8 answers

UIButton interaction inside UIPageViewController

I'm using an UIPageViewController in my application and I wanted to have a few UIButtons inside it, sort of like a menu. The problem I have is that when I put an UIButton (or any other interactive element) near the edges of the screen and tap it,…
gutenbergn
  • 494
  • 5
  • 14
12
votes
4 answers

iOS UIPageViewController Gets Confused and ViewControllers Are Not Displayed

We have left and right buttons set up for the user to page through different cars quickly. Our Page View Controller loses the view controller if the user taps quickly to the next page 10 or more times. Here is the vehicle page with the car showing…
finneycanhelp
  • 9,018
  • 12
  • 53
  • 77
12
votes
1 answer

What should I return in presentationIndexForPageViewController: for my UIPageViewControllerDataSource?

The documentation for the return value of presentationIndexForPageViewController: says: Returns the index of the selected item to be reflected in the page indicator. However, this is vague. Will it call this method and expect the proper index as…
Senseful
  • 86,719
  • 67
  • 308
  • 465
12
votes
5 answers

UIPageViewController NSInternalInconsistencyException

I'm developing a simple UIPageViewController that has two pages. Each page is loaded from a different ViewController with their specific xib files, named PViewController and TViewController. For PViewController, there are three different views,…
hsnm
  • 658
  • 1
  • 8
  • 20
12
votes
4 answers

Setting TranslatesAutoresizingMaskIntoConstraints to No on UIPageViewController

I'm building a complicated project where, among other things, I need to set a UIPageViewController as a childview of a main view. I'm using autolayout, and using constraints to order the various elements on the main view. The problem is, that when I…
Rubberduck
  • 1,107
  • 2
  • 13
  • 26
11
votes
5 answers

How to set background color for UIPageViewController?

How to set color for background view in UIPageViewController? Is it possible to do this in Storyboard?
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358