Revert Xcode 4.5 new XIB files to iOS<6

血红的双手。 提交于 2019-12-08 20:16:30

问题


i've installed Xcode 4.5 with iOS6 SDK and others old SDKs (from 4.3 to 6.0) for testing purpose.

Beautiful, but there is a BIG problem!

A new XIB file is generated for iOS6 compliant!

This is a problem, because my app need to run on older devices, not only 6.0+!
When i load the new view (ios6) in a 5.1 device, it silently crash with this error:

2012-09-24 22:00:17.090 App[14524:11f03] * Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'

How can i remove extra lines in XIB to make (xib and app) compatible with older ios version?

thanks a lot.


回答1:


Try changing this option of the xib:

Also make sure that Use Autolayout is off, because it's a iOS 6.0 feature.



来源:https://stackoverflow.com/questions/12571965/revert-xcode-4-5-new-xib-files-to-ios6

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