Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show UIPageViewController that doesn't take whole screen

I'd like to show a book on landscape iPhone that would use page curl from UIPageViewController, but I'd like book not to take the whole screen.

To clarify, let's say background is a wooden desk image and there is book on it that can be browsed using UIPageViewController and page curl but only book pages participate in page curl, background is completely static.

Is this possible?

like image 209
bh213 Avatar asked Nov 12 '22 19:11

bh213


1 Answers

Yes it is possible. I have a UIPageViewController using on half the screen for example. The secret is to add it into a parent view controller that is a custom container view controller

like image 179
Paul de Lange Avatar answered Jan 01 '23 09:01

Paul de Lange