升级到Xcode 7后由UIKit冻结的应用程序 [英] App frozen by UIKit after upgrading to Xcode 7
本文介绍了升级到Xcode 7后由UIKit冻结的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将我的项目升级到Swift 2.0并使用Xcode 7(GM)后,我注意到我的一些视图控制器冻结了导航上的应用程序。
After upgrading my project to Swift 2.0 and using Xcode 7 (GM) I noticed some of my view controllers freeze the app on navigation.
仪器向我显示CPU使用率超过9000%并由UIKit和Foundation使用。
Instruments show me that CPU usage is over 9000% and is used by UIKit and Foundation.
你遇到过这个问题吗?
推荐答案
好像是其中一个Interface Builder问题。
It seems to be one of those Interface Builder issues.
我通过在故事板中删除UITextView中的任何文本成功地击败了这个。如果我重新设置text属性,它又会出现。
I've successfully defeated this by removing any text from UITextView in storyboard. And it comes again if I set text property back.
希望这可以帮助别人不浪费宝贵的时间。
Hopefully, this will help someone to not waste precious time.
这篇关于升级到Xcode 7后由UIKit冻结的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文