【问题标题】:UIViewController takes too long to deallocate and blocks UI in UINavigationControllerUIViewController 在 UINavigationController 中释放和阻塞 UI 的时间太长
【发布时间】:2017-09-19 12:44:34
【问题描述】:

UIViewControllers 在主线程上被释放。 (Why is UIViewController deallocated on the main thread?)

我的 UINavigationController 有一个 UIViewController 非常占用内存(SceneKit 场景有数千个节点)。

当用户按下返回按钮时,此 UIViewController 会被解除。

但是,在解除分配完成之前,UI 会被阻塞大约 4 秒。

如何避免 UI 在解除分配完成时被阻塞?

或者,如何在解除分配完成时通知我,以便在 UI 被阻止时显示微调器?

【问题讨论】:

    标签: ios user-interface memory-management uiviewcontroller uinavigationcontroller


    【解决方案1】:

    这个问题已通过我对另一个问题的回答得到解决:Heavy SceneKit scene in UINavigationViewController takes too long to dealloc

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-15
      • 2019-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多