gpt4 book ai didi

ios - 带有 subview Controller 的分页 ScrollView

转载 作者:可可西里 更新时间:2023-11-01 03:30:52 26 4
gpt4 key购买 nike

实现带分页的水平 ScrollView 的最佳实践是什么,每页一个 View Controller ?

PageControl既然 iOS5 具有用于 View Controller 容器/容器的 API,示例仍然是实现此目的的最佳方式吗?

最佳答案

我知道这个问题有点老了,但是从 iOS 6 开始,UIPageViewController 有一个新的过渡样式属性,叫做 UIPageViewControllerTransitionStyleScroll它允许您将页面 Controller 用于像您这样的用例,在页面之间进行简单的滚动而不是 iBooks 样式的页面 curl 过渡。

您还应该观看 2012 WWDC 视频编号 223 - Enhancing User Experience with Scroll Views他们基本上将使用您描述的方法的旧应用程序转换为具有滚动样式转换的新 UIPageViewController。

关于ios - 带有 subview Controller 的分页 ScrollView ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9975587/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com