查看插座未设置? (Xcode)
当尝试运行我当前正在构建的 iPhone 应用程序时,构建成功,但应用程序在启动图像后崩溃,并给出如下错误:
2011-04-06 20:31:38.562 我的应用程序[3438:207] * 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“-[UIViewController _loadViewFromNibNamed:bundle:] 已加载“GalleryView”笔尖,但未设置视图出口。'
我不知道这里发生了什么事..请帮忙!
When trying to run my iPhone app that I am currently building the build succeeds but the application crashes after the start up image and gives me an error that looks like this:
2011-04-06 20:31:38.562 My App[3438:207] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "GalleryView" nib but the view outlet was not set.'
I cannot figure out whats going on here.. Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Interface Builder 中,打开 GalleryView.xib 文件,确保按住 CTRL 键并从文件所有者拖动到视图,并设置文件所有者视图出口。
In Interface Builder, with the GalleryView.xib file open, make sure you CTRL+drag from your File's owner to your view and set the file's owner view outlet.