NSRangeException on iOS 8

别说谁变了你拦得住时间么 提交于 2019-12-02 03:41:12
Pavel P.

Faced the same issue. Found that the problem is in button whose layer was used as mask for another button's layer for some visual effect (CALayer's mask property). Removing mask button from view hierarchy fixed the problem. I just moved it to view controller scene in storyboard.

Looks like using layer as a mask caused problem in _UIViewTopDownSubtreeTraversal function used by autolayout. Maybe other layer manipulations for some view also can.

One solution I found is that you need to have at least 6 screens and then the app won't crash.

Still trying to get it to work with less screens. Turned off Auto Layout on my only XIB (LaunchScreen.xib) but that didn't solve the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!