UIPageViewController Archive

UIPageViewController: how to get current page index and current visible controller?

UIPageViewController has the viewControllers array property. The currently visible viewController is always the first one in the viewControllers array. Example: Objective-C: Swift: The easiest way to get the current index is to have the itemIndex property in every content controller and just retrieve its

iOS Tutorial: Using UIPageViewController to create a content slider (Objective-C/Swift)

Navigating between content pages by swiping is a widespread behavior in iOS. Surely, it is much more convenient to scroll through the gallery or magazine articles than to go back and select the next item. However, before iOS