ios - pushViewController 需要一些时间

标签 ios swift uinavigationcontroller

当我从第一个 viewController 推送到另一个 ViewController 时,需要一些时间。第一次推送后的第一次它工作正常。 InsuranceInfoViewController viewDid 加载方法中没有编写代码。期待这个推送在整个应用程序中正常工作。我正在使用 Xcode 7.0 beta6。这是 Xcode 的问题吗?

let insuranceInfoVC = self.storyboard?.instantiateViewControllerWithIdentifier("InsuranceInfoViewController") as! InsuranceInfoViewController
self.navigationController?.pushViewController(insuranceInfoVC, animated: true)

我也试过GCD

dispatch_async(dispatch_get_main_queue()) { [unowned self] in
let insuranceInfoVC = self.storyboard?.instantiateViewControllerWithIdentifier("InsuranceInfoViewController") as! InsuranceInfoViewController
    self.navigationController?.pushViewController(insuranceInfoVC, animated: true)
     }

最佳答案

我使用的是自定义 Roboto-Regular 字体。Roboto-Regular 字体被分配给控件,但这种字体并不存在。由于 Roboto-Regular 字体不存在,因此系统需要时间来搜索此字体,因为这需要时间。 当我更正某些控件的字体时,它加载速度很快。

关于ios - pushViewController 需要一些时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33894569/

相关文章:

iPad UINavigationController 横向问题

ios - 使用自动布局支持不同 iPhone 尺寸的问题(包括图表)

ios - wait_fences : failed to receive reply: 10004003 with MessageUI

xcode - 在 Swift 的 NSScrollView 和 NSTextView 中显示控制台输出

xcode 构建阶段的 Python 脚本

json - Swift 从 API 接收数据后如何填充我的 tableView

ios - UITableViewController 中的顶部栏背景

ios - UIViewController 中的表格 View 没有获得 hidesBarsOnSwipe 功能

ios - 如果 iPhone 没有越狱,macOS 上的 iTunes 可以检测到 iPhone 吗?

objective-c - 如何使用 Storyboard设置代表