eli_slade
eli_slade

Reputation: 509

How can I have multiple viewcontrollers in UIPageViewController display at once

I'm trying to have multiple viewControllers show in a single frame of a UIPageViewController. With the current page being centred in the UIPageViewController and the previous and next cards showing on the edge of the screen

I've been struggling to find a solution. Any help would be much appreciated.

-> Like this <-

Upvotes: 5

Views: 642

Answers (1)

Duncan C
Duncan C

Reputation: 131398

I don't think you can do what you are describing. A page view controller shows one page, or 2 pages with a spine in the middle. It has pages "waiting in the wings" for when the user flips/slides new pages, but I don't think it supports showing pages off the edge.

That said, it wouldn't be that hard to create your own parent/child view controller arrangement that does what you want. you might even be able to base it off of a UICollectionView.

Upvotes: 2

Related Questions