How can I fix NSInvalidUnarchiveOperationException

[亡魂溺海] 提交于 2019-12-03 09:26:38

This is occuring because you are using Xcode 4.5 (or previously the beta) which uses "auto layout" by default. Auto layout is only available on iOS 6 so you will get a runtime error on previous iOS versions.

You can fix this by opening your Storyboard, opening the Utilities pane, and disabling the "Use Autolayout" checkbox in the first tab/section:

For regular non-storyboard nibs, select the top-level view to access this option.

In Your Xib-> Identity and type ->Interface Builder Document -> uncheck useAutoLayout check box,this is the new feature with Ios6

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