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
47
votes
11 answers

Can we customize the page indicator in UIPageViewController?

Now it's white dots with black background. What about if I want it to be black dots with white backgrounds? - (NSInteger)presentationCountForPageViewController:(UIPageViewController *)pageViewController NS_AVAILABLE_IOS(6_0) { return…
Septiadi Agus
  • 1,775
  • 3
  • 17
  • 26
45
votes
12 answers

How do I make the bottom bar with dots of a UIPageViewController translucent?

I'm in the process of making a tutorial, and I'm trying to emulate the style of Path's tutorial like so: http://www.appcoda.com/wp-content/uploads/2013/06/UIPageViewController-Tutorial-Screen.jpg My issue is that if set the delegate method as so: -…
mverderese
  • 5,314
  • 6
  • 27
  • 36
43
votes
4 answers

Refresh UIPageViewController - reorder pages and add new pages

I have a UIPageViewController which I am providing page data for using an implementation of UIPageControllerDelegate and UIPageControllerDataSource. It's all working fine, but I want to be able to add items to the page data and reorder the page…
ssloan
  • 2,226
  • 4
  • 26
  • 40
42
votes
3 answers

uipageviewcontroller class crashing on setting more than one view controllers

My app keeps crashing, when I set more than one view controller in my app, like below. [self setViewControllers:_images direction:UIPageViewControllerNavigationDirectionForward animated:YES completion:NULL]; My images is an array of view…
Dunes Buggy
  • 1,779
  • 1
  • 21
  • 41
40
votes
12 answers

PageViewController current page index in Swift

I want to get current index of a pageViewController, I don't know how I get the visible pages index. func pageViewController(pageViewController: UIPageViewController, didFinishAnimating finished: Bool,previousViewControllers:…
LeNI
  • 1,184
  • 2
  • 10
  • 19
37
votes
6 answers

Increase the size of the indicator in UIPageViewController's UIPageControl

Is it possible to Increase the size of the indicator in UIPageViewController? I have this: And my requirement is this:
Anurag Sharma
  • 4,276
  • 2
  • 28
  • 44
35
votes
4 answers

How to implement UIPageViewController that utilizes multiple ViewControllers

I've been working on a simple test app to learn the ins and outs of the UIPageViewController. I have it working but I'm not convinced my execution is the best way. I hope some of you can point me in the right direction. To get a basic…
Ben
  • 967
  • 3
  • 9
  • 23
35
votes
12 answers

UIPageViewController returns no Gesture Recognizers in iOS 6

I am trying to disable the pan gesture recognizer for a UIPageViewController. On iOS 5 I can loop through them and disable them. for (UIGestureRecognizer* recognizer in self.pageViewController.gestureRecognizers) { if ([recognizer…
bjtitus
  • 4,231
  • 1
  • 27
  • 35
33
votes
5 answers

Assertion failure in UIQueuingScrollView didScrollWithAnimation:force:

I've got a UIPageViewController set up paging my ImageViewController. The ImageViewController contains a UIScrollView with a UIImageView inside. Nothing else. I'm testing at the moment with 3 "items" in my datasource for the UIPageViewController…
Fogmeister
  • 76,236
  • 42
  • 207
  • 306
32
votes
4 answers

how to add two view controllers in UIPageViewcontroller

I m using UIPageViewController on iPad where I need to show a firstviewController in the first page and ContentViewController in the next page in landscape. If I set the NSArray with two viewControllers the app is crashes at [self.pagviewController…
user578386
  • 1,061
  • 3
  • 14
  • 37
31
votes
8 answers

Tell When a UIPageViewController is Scrolling (for Parallax Scrolling of an Image)

I am trying to make an effect similar to that found in the new Yahoo weather app. Basically, each page in the UIPageViewController has a background image, and when scrolling through the page view, the Image's location only scrolls about half the…
29
votes
6 answers

iOS Swift: UIPageViewController - Turning page programmatically

I have a UIPageViewController, which works fine when we swipe left or right to turn pages. class ViewController: UIViewController, UIPageViewControllerDataSource { ... } Now I intend to provide Previous/Next button on the page too, so that pages…
Jasper
  • 8,440
  • 31
  • 92
  • 133
28
votes
3 answers

How to solve "Failed to determine navigation direction for scroll" bug

My most frequent bug has "Failed to determine navigation direction for scroll" for reason, any idea about how I could solve it? Here is the last Exception Backtrace: 1. CoreFoundation __exceptionPreprocess + 131 2. libobjc.A.dylib …
Matthieu Rouif
  • 2,843
  • 1
  • 19
  • 28
25
votes
1 answer

Show partial previous and next item on PageTabViewStyle (SwiftUI 2.0) or PageViewController/PageView (with UIKit interface)

I am working with SwiftUI 2.0 and actually, I am happy that Apple introduced PageTabViewStyle to simply create a pager. But unfortunately, I am not able to implement it in a way I would like to. Is it possible to create a pager (PageTabViewStyle)…
Sebastian Fox
  • 1,324
  • 1
  • 10
  • 20
25
votes
8 answers

Adding dots to bottom of UIPageViewController screen

I have implemented the data source methods of UIPageViewController and still not getting dots at bottom of my iOS app. Anybody have any solution to make dots appear on my app?
Himanshu
  • 2,832
  • 4
  • 23
  • 51