ios - 页面 View Controller 中的页面突然下拉 Action

标签 ios swift uipageviewcontroller

我的应用程序中有 2 个页面使用 UIPageViewController 进行转换。 第一页加载正常,但第二页将有一个类似于下面的 .gif 图像的“下降” Action 。 enter image description here

这只会在页面加载时发生一次。 我不太确定是什么原因造成的,但我怀疑可能是制约因素。它似乎在加载页面时应用约束。

我目前正在寻找一种先预加载页面的解决方案,如果可行,我将扩展该解决方案以仅预加载上一页和下一页(如果有)。如果有更好的解决方案,请与我分享。

最佳答案

我遇到过由导航 Controller /导航栏和代码中的 automaticallyAdjustsScrollViewInsets 属性或 Storyboard中的“Adjust Scroll View Insets”属性引起的类似问题。看起来你的第一页没有设置,第二页有。

关于ios - 页面 View Controller 中的页面突然下拉 Action ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29090507/

相关文章:

ios - 从 parse 迁移到 azure 不适用于移动应用程序

ios - 在带有 swift 的 Sprite 套件中,当我在节点上运行一个 Action 以将其移动到某个 y 值时,它会逐渐减慢。为什么?

ios - 允许按钮在页面 View Controller 中触发新的 View Controller - swift

ios - Swift:对象数组搜索

ios - 如何检查在 UIAlertController 中创建的 UITextField 的文本?

ios - 如何使用 iOS API 将 KML 文件 URL 加载到 Google map 中?

ios - Realm 查询如何工作?

ios - 使用 Storyboard ID UINavigationController segue 后消失

ios - 在 UIView 中使用 UIPageViewController

objective-c - 如何调整 UIPageViewController 的横向大小