【问题标题】:Push Transparent UIViewController推送透明 UIViewController
【发布时间】:2018-04-08 20:32:43
【问题描述】:

我知道这个问题被问了很多,但没有一个适合我的解决方案。 只是我想推送一个透明的 UIViewController(不是 Modal),只是简单地推送到我的 UINavigationController。

问题是我想摆脱出现的闪烁,有什么想法吗?

【问题讨论】:

  • 你能分享代码和屏幕截图吗?
  • 当您将新的UIViewController 推送到UINavigationController 时,下方的UIViewController 在过渡结束时会消失。你能更具体地说明闪烁吗?
  • 为什么不将UIViewController 的视图作为subview 添加到父UIViewController

标签: ios iphone uiviewcontroller uinavigationcontroller


【解决方案1】:

这相当容易。您需要提供自己的过渡。 在转换代码中,您将保留 ViewControler 的视图并完成。如果不这样做,您将看到黑色背景。

教程在这里: Navigation controller custom transition

【讨论】:

    猜你喜欢
    • 2020-01-26
    • 2023-04-06
    • 2016-05-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多