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
11
votes
1 answer

Using UIPageViewController without storyboard

I would like to add a tutorial to my app using UIPageViewController, but my app is not using storyboard, do you know any tutorial that could explain to me how to do it? I've been looking around but everything mention storyboard. Thanks a lot.
Seylar
  • 151
  • 1
  • 1
  • 5
11
votes
3 answers

How to add UIBarButtonItem to NavigationBar while using UIPageViewController

Please forgive me, there are already a ton of questions on how to add a UIBarButtonItem to a NavigationBar programmatically but I just can't seem to get any of the solutions to work in my situation. Here is the layout of a simple test app I have…
11
votes
3 answers

UIPageViewController not respecting the top layout guide in iOS 7

I am using a page view controller to flip through a series of view controller, each of which is instantiated from a storyboard. I basically used the standard page based application code as a basis and built what I needed on top of it. The view…
kmikael
  • 4,962
  • 3
  • 32
  • 34
11
votes
3 answers

ViewControllers with TextViews in UIPageViewController

I was trying to learn UIPageViewControllers and hit an Issue which I couldn't resolve. This is what I tried to do: Steps: I simply created 2 view controllers and a page view controller in StoryBoard. Then I added some code to the File's Owner of…
Bavan
  • 1,021
  • 1
  • 10
  • 24
11
votes
1 answer

UIPageViewController has strange size

I am using a UIPageViewController in my app. It works quite well, but when I turn pages, the next page seems to get initialized in a frame that is bigger than the screen: While turning the page, only a part of the view of the next viewController…
FD_
  • 12,947
  • 4
  • 35
  • 62
10
votes
6 answers

Swift iOS: how to trigger next page using buttons

I have a QuizViewController which extends UIViewController, UIPageControllerDelegate, and a UIPageViewControllerDataSource. Inside QuizViewController.swift private var pageViewController: UIPageViewController? private func…
Kim Stacks
  • 10,202
  • 35
  • 151
  • 282
10
votes
3 answers

how to make uipageviewcontroller go in circles

I'm having a UIPageViewController that shows different pages. The current behaviour is that it stops scrolling when I reached the last page. What I now want to achieve is that when on the last page and scrolling right, it goes to the first page.…
Oliver Schobel
  • 377
  • 4
  • 20
10
votes
2 answers

UIPageViewController subviews move behind the status bar after screen tap

So, I have a segue from UICollecionView item tapped to UIPageViewController. When PageViewController shows, the navigation bar makes dark gray, and UIView in it has a strange offset. However, after i click once in any place on screen, I see a…
Egor
  • 435
  • 5
  • 17
10
votes
5 answers

UIPageViewController disable scrolling

I am using a UIPageViewController with transitionStyle UIPageViewControllerTransitionStyleScroll and navigationOrientation UIPageViewControllerNavigationOrientationVertical I also have a UIPanGestureRecognizer on the view and I want to disable page…
simon
  • 2,635
  • 4
  • 20
  • 21
9
votes
1 answer

UIPageViewController transition speed / duration?

Is there any way to change the default duration of the page curl transition? It is way to fast then I wish it will be? Thanks Shani
shannoga
  • 19,649
  • 20
  • 104
  • 169
9
votes
1 answer

How to use UIPageViewController to also display a part of the previous and next views

I used this amazing tutorial How to Use UIPageViewController in Swift to understand and implement an UIPageViewController in my app. I have successfully completed the integration, but I need to modify a little bit the behavior now. Instead of…
cmii
  • 3,556
  • 8
  • 38
  • 69
9
votes
2 answers

UIPageViewController and UIPageControl transparent background color - iOS

I'm making a tutorial when app launches for the first time and using UIPageViewController for that. Everything is working fine but the background color of UIPageViewController is not getting transparent. It's always black, as shown below: Here's…
9
votes
2 answers

Cannot assign to property: 'self' is immutable

I am creating a page view application. I have written code for the ViewController: import UIKit class ViewController: UIViewController { var pageViewController : UIPageViewController! var pageTitles : NSArray! var pageImages : NSArray! @IBAction…
grahamcracker1234
  • 591
  • 1
  • 7
  • 27
9
votes
3 answers

Why content insets of a UITableView inside a UIPageViewController get messy right after an interaction?

I've created a Page-Based Application and hacked it a bit for some experiments; my simple aim is to have a UIPageViewController whose pages will contain a UIViewController holding a UITableView (after further inspection, the outcome of my experiment…
dev_mush
  • 2,136
  • 3
  • 22
  • 38
9
votes
3 answers

UIPageViewController with Peeking

I'm trying to create a page browser by using a UIPageViewController in Interface Builder that allows displaying part of the adjacent pages (aka peeking). I've been following a tutorial at…
BadmintonCat
  • 9,416
  • 14
  • 78
  • 129