问题
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.
Instruments show me that CPU usage is over 9000% and is used by UIKit and Foundation.
Have you encountered this problem?
回答1:
It seems to be one of those Interface Builder issues.
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.
来源:https://stackoverflow.com/questions/32549020/app-frozen-by-uikit-after-upgrading-to-xcode-7