Terminating with uncaught exception of type NSException (xcode 6)

故事扮演 提交于 2019-12-06 05:38:26

It means you have a view controller, but you have not set the view outlet. In interface builder, right click on the view controller, and outlet and action popup will appear. Find the view outlet, and drag it to the topmost view in the views list.

I had this problem and basically it was due to a button being assigned to an outlet (which i did not need) and and action that I was actually using. To resolve this type of issue, you need to make sure that your buttons are correctly assigned and get rid of any outlets that you do not need or that you may have added by mistake.

It happens to me when you changed ui element in storyboard, didn't clean them completely. Just right click on the top view controller, and it will show which one should be deleted

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