Keep previous pages in UIPageViewController

China☆狼群 提交于 2019-12-04 15:11:33

问题


So I want to create an interface like the image above (it is a snapshot form the mosaic app). When you turn the page this is the kind of behavior happening.

So what is different here is that the cover (the black part) is still visible once you turn the page (the cover is flippable as well, not just a static asset). In a UIViewController when I flip the page it unloads the previous view. So how do I go about implementing this ? Any help or nudge in the right direction will be much appreciated.


回答1:


So no replies to this but this question has an upvote this time, I am assuming that someone might stumble into this problem. So here is how I did it, I used 3 different UIPageViewControllers, for the front cover, the pages and for the back cover. This will get you to the point where the covers are visible when you are flipping through the pages. Thanks.



来源:https://stackoverflow.com/questions/15002005/keep-previous-pages-in-uipageviewcontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!