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
169
votes
18 answers

Is it possible to Turn page programmatically in UIPageViewController?

Is it possible to turn page programmatically in UIPageViewController?
RAGOpoR
  • 8,118
  • 19
  • 64
  • 97
148
votes
25 answers

How do I Disable the swipe gesture of UIPageViewController?

In my case parent UIViewController contains UIPageViewController which contains UINavigationController which contains UIViewController. I need to add a swipe gesture to the last view controller, but swipes are handled as if they belong to page view…
94
votes
20 answers

UIPageViewController: return the current visible view

How do you know what is the current page/view displayed inside an UIPageViewController? I have overridden the viewDidAppear method of my child views, so that they send an id to the parent view in their viewDidAppear method. However, the problem is…
Jan
  • 1,582
  • 1
  • 13
  • 19
90
votes
15 answers

How to Make the scroll of a TableView inside ScrollView behave naturally

I need to do this app that has a weird configuration. As shown in the next image, the main view is a UIScrollView. Then inside it should have a UIPageView, and each page of the PageView should have a UITableView. I've done all this so far. But my…
70
votes
11 answers

topLayoutGuide in child view controller

I have a UIPageViewController with translucent status bar and navigation bar. Its topLayoutGuide is 64 pixels, as expected. However, the child view controllers of the UIPageViewController report a topLayoutGuide of 0 pixels, even if they're shown…
hpique
  • 119,096
  • 131
  • 338
  • 476
65
votes
5 answers

iOS 8 UIPageViewController Applying Constraints After Transitions

My app has a multi-pane tutorial-style view that users swipe through to learn about the app. This is implemented very much as described in this tutorial. Having implemented it for both iOS 7 and 8, I'm comparing how they work, and finding issues…
Aaron Vegh
  • 5,217
  • 7
  • 48
  • 75
64
votes
13 answers

UIPageViewController, how do I correctly jump to a specific page without messing up the order specified by the data source?

I've found a few questions about how to make a UIPageViewController jump to a specific page, but I've noticed an added problem with jumping that none of the answers seem to acknowledge. Without going into the details of my iOS app (which is similar…
Kyle
  • 1,434
  • 1
  • 11
  • 14
61
votes
7 answers

How to put the UIPageControl element on top of the sliding pages within a UIPageViewController?

Regarding to this tutorial by AppCoda about how to implement a app with UIPageViewController I'd like to use a custom page control element on top of the pages instead of at the bottom. When I just put a page control element on top of the single…
sn3ek
  • 1,929
  • 3
  • 22
  • 32
60
votes
15 answers

Content pushed down in a UIPageViewController with UINavigationController

UPDATE 2 I've been running and testing my app in the iOS Simulator using a 4-inch device. If I run using a 3.5-inch device the label doesn't jump. In my .xib, under Simulated Metrics, I have it set as Retina 4-inch Full Screen. Any idea why I'm only…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
58
votes
17 answers

Disable UIPageViewController bounce

Searched a lot for this one, but couldn't find a proper solution yet. Is it possible to disable the bounce effect of a UIPageViewController and still use the UIPageViewControllerTransitionStyleScroll?
Mario
  • 2,431
  • 6
  • 27
  • 34
57
votes
5 answers

Hide dots from UIPageViewController

I would like to do to a pretty simple thing. Just remove all the dots, and the bar on the bottom of the UIPageViewController. This is the setup: I have a custom view controller which has UIPageViewController *pageController I display it like…
Stefan Salatic
  • 4,513
  • 3
  • 22
  • 30
52
votes
8 answers

UIPageViewController and storyboard

I'm trying to configure a UIPageViewController SPECIFICALLY from storyboard: TutorialPageViewController.h #import @interface TutorialPageViewController : UIPageViewController
Benjamin Toueg
  • 10,511
  • 7
  • 48
  • 79
50
votes
7 answers

Assertion failure in UIPageViewController

While switching between Tabs too fast in UIPageViewController, App getting crash in line [UIPageViewController queuingScrollView:didEndManualScroll:toRevealView:direction:animated:didFinish:didComplete:] with errors Assertion failure and…
Brjv
  • 1,054
  • 1
  • 8
  • 24
49
votes
7 answers

UIPageViewController navigates to wrong page with Scroll transition style

My UIPageViewController was working fine in iOS 5. But when iOS 6 came along, I wanted to use the new scroll transition style (UIPageViewControllerTransitionStyleScroll) instead of the page curl style. This caused my UIPageViewController to…
matt
  • 515,959
  • 87
  • 875
  • 1,141
47
votes
9 answers

UIPageViewController page control background color

i'm using UIPageViewController in my app and it's working fine. however, it's page control which has been added automatically has a black background which is hiding the current view controller's bottom material (See picture below). is it possible to…
user1938695
  • 623
  • 1
  • 5
  • 14
1
2 3
99 100