将以前的页面保留在UIPageViewController中 [英] Keep previous pages in UIPageViewController

查看:84
本文介绍了将以前的页面保留在UIPageViewController中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我想创建一个如上图所示的界面(这是来自镶嵌应用程序的快照). 当您翻页时,这就是这种行为.

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.

所以这里的不同之处在于,当您翻页时,封面(黑色部分)仍然可见(封面也是可翻转的,而不仅仅是静态资产).在UIViewController中,当我翻转页面时,它将卸载先前的视图. 那么我该如何实施呢? 在正确方向上的任何帮助或推动将不胜感激.

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.

推荐答案

因此,对此没有任何答复,但这次问题有一个否决权,我假设有人可能会偶然发现此问题. 因此,这就是我的操作方式,我使用了3种不同的UIPageViewControllers,分别用于封面,页面和封底.当您翻阅页面时,这将使您到达可以看到封面的位置. 谢谢.

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.

这篇关于将以前的页面保留在UIPageViewController中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆