I'm having this weird situation over my app. I'm calling performSegueWithIdentifier
over the main thread :
我对我的应用程序有这种奇怪的情况。我在主线程上调用performSegueWithIdentifier:
dispatch_async(dispatch_get_main_queue()){
self.performSegueWithIdentifier("toFrame", sender: nil)
}
I've set breakpoints thru the process, and even cleaned prepareForSegue
.
我通过这个过程设置了断点,甚至清理了prepareForSegue。
Only for the first time when i'm calling this(to this specific VC),it's delayed for about 6 seconds, and than moving to the VC. After this delay, if i'm navigating back and forth, it runs smoothly Any suggestions? Ive tried everything :\
只是我第一次打电话给这个(对于这个特定的VC),它延迟了大约6秒,而不是转移到VC。在这个延迟之后,如果我来回导航,它会顺利运行任何建议?我尝试了一切:
1 个解决方案
#1
1
It can be fonts issue: if you select them in IB and didn't check target membership - system will look for them before retrieving default font - and thus will create delay before presenting controller.
它可能是字体问题:如果你在IB中选择它们并且没有检查目标成员资格 - 系统将在检索默认字体之前查找它们 - 因此在呈现控制器之前会产生延迟。
Please check font's target membership.
请检查字体的目标成员资格。
It’s famous bug with modal presentation:
这是着名的模态演示错误:
#1
1
It can be fonts issue: if you select them in IB and didn't check target membership - system will look for them before retrieving default font - and thus will create delay before presenting controller.
它可能是字体问题:如果你在IB中选择它们并且没有检查目标成员资格 - 系统将在检索默认字体之前查找它们 - 因此在呈现控制器之前会产生延迟。
Please check font's target membership.
请检查字体的目标成员资格。
It’s famous bug with modal presentation:
这是着名的模态演示错误: