当前位置:编程学习 > 网站相关 >>

The NIB data is invalid.' foruncaught exception 'NSInternalInconsistencyException'

I faced this issue in a very special situation.  To debugging the iOS7 issue in my XCode4.6, I copied the iOS7 SDK from xcode5 application into xcode4.6.  After that, I always met this error when running my App on the IPAD1 device with iOS5.1.  The App works fine on any other iOS6 above devices. 
So if I remove iOS7 SDK folder from /Application/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs, this exception will disappear. 
 
I searched internet, most people met the issue just because "use Autolayout" was checked, but no one have the same issue with me above, so record it here for your reference. 
Uncheck the "use Autolayout" highlighted in the below image. Xcode 4.5 enables this property by default for the new nib files you add into your project. Unchecking the autolayout check box solved the problem
补充:综合编程 , 其他综合 ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,