Search code examples
iosxcodeswiftuinavigationcontrolleruipageviewcontroller

Swift iOS : UIPageController inside UINavigation controller


I'm building an app based on a UINavigation controller as the main entry.

I would like to add a mini tutorial with a UIPageController (dots) inside the nav, but all the documentation I can find shows how to use UIPageControllers as a main entry to an app.

When I attempt to put the usual code onto a custom-classed ViewController page that is accessed from the UINavigation Controller, (instead of on the main ViewController) it does not work.

Looking for advice or hints on where to look for this kind of thing.

Currently using Xcode 7.0 with Swift.


Solution

  • Using a UIPageViewController will work within a UINavigationController, and setting the UIPageViewController to "Horizontal Scroll" in the Interface Builder console will allow it to act as a dotted-tutorial style page progression.