【问题标题】:Pushing ViewContoller Slow and Choppy推动 ViewController 缓慢而不稳定
【发布时间】:2022-06-17 17:06:19
【问题描述】:

我仅通过没有 StoryBoards 的代码实现了 UIViewController,并且我看到在推动视图控制器时出现断断续续的情况。即使我使用的是 UINavigationController 的默认推送动画。

 baseNavigationController.pushViewController(vc, animated: true)

【问题讨论】:

    标签: ios swift uiviewcontroller uinavigationcontroller


    【解决方案1】:

    解决方案简单易行。您应该设置细节 ViewController(被推送的那个)的背景颜色。

    view.backgroundColor = .white
    

    感谢凯塔this post

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-17
      • 1970-01-01
      • 2016-01-27
      • 2020-02-11
      • 2012-05-08
      • 2015-07-31
      相关资源
      最近更新 更多