【问题标题】:UIPageControl shifted the image over it (instead of being on top of it)UIPageControl 将图像移到它上面(而不是在它上面)
【发布时间】:2014-11-07 17:05:35
【问题描述】:

不幸的是,这种情况经常发生,但并非总是如此。我们正在开发一个以类似 powerpoint 的方式显示图像/视频的应用程序。在屏幕底部,我们有一个 UIPageViewControl,它在 UIPageViewController 中显示当前页面。

当我们在 UIPageViewController 上显示一个 UIView 并关闭它时,当 UIPageViewController 的内容被显示时,它会向上移动 UIPageControl 的大小。当我们触摸屏幕时,内容在 UIPageController 下正确重绘。

** 请注意,这只发生在 iOS 7 中。在 iOS 8 中,它按预期工作。当 xcode 6 和 iOS 8 SDK 不可用时,我们确实遇到了这个问题。

当我们关闭呈现的 UIView 时,我们希望看到以下图像:

以下是关闭视图后发生的情况

您可以看到 UIPageControl 现在是不透明的并且图像向上移动了。

【问题讨论】:

    标签: ios uipageviewcontroller uipagecontrol


    【解决方案1】:

    我的自定义 UIViewController 缺少以下设置:

    viewController.automaticallyAdjustsScrollViewInsets = NO;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-29
      • 1970-01-01
      相关资源
      最近更新 更多