gpt4 book ai didi

ios - UIPageViewController 中是否可以有多个 UIView

转载 作者:行者123 更新时间:2023-11-29 03:17:41 25 4
gpt4 key购买 nike

我正在尝试设置一个 UIPageViewController,它可以在三个截然不同的 View 之间滑动。我需要一个 UICollectionView,一个 UITableView,然后是另一个格式不同的 UICollectionView。谁能澄清一下,这是否可能?最近几天我一直在寻找,但没有找到明确的答案。我不是要有人为我解决这个问题,我只是想知道我是否应该放弃并采用不同的方法。

最佳答案

是的,这是可能的。

来自 UIPageViewController 类引用:

A page view controller lets the user navigate between pages of content, 
where each page is managed by its own view controller object.

每个页面都需要一个viewController。我建议你在这里阅读:https://developer.apple.com/library/ios/documentation/uikit/reference/UIPageViewControllerClassReferenceClassRef/UIPageViewControllerClassReference.html

关于ios - UIPageViewController 中是否可以有多个 UIView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21485163/

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