ios - ViewController 在被推送后 2-3 秒无响应

标签 ios uiviewcontroller

什么会导致 viewController 在被推送后 2-3 秒内没有响应? tableView 不滚动,无法点击搜索栏。

viewDidLoad/viewWillAppear 上没有繁重的代码。没有复杂的布局。只是一个简单的 tableView(即使不填充也没有区别)。

最佳答案

在 Runtime API Checking 部分下,确保启用Main Thread Checker 以查看您是否在非 UI 线程中执行 ui 方法

enter image description here

enter image description here

关于ios - ViewController 在被推送后 2-3 秒无响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47716045/

相关文章:

ios - 如何在 AppDelegate 中将 View Controller 设置为 Root View Controller

ios - 当 View Controller 以编程方式呈现时,如何知道它何时展开

ios - Watchkit 和 Realm 0.92.3

javascript - 如何在 Cordova/Phonegap 中的远程 html 文件中包含本地脚本?

ios - 将 Swift 函数转换为 Objective C 并在 swift 中使用返回值

ios - 如何在 Swift 中找到正确的路径

iphone - 为什么 ViewController 类的单独实例会影响前一个实例?

ios - 停止 MCBrowserViewController 旋转。忽略 plist 并且不会子类化

ios - UIViewController 动画 ios?

ios - 无法更改导航栏中搜索栏的文本和背景颜色