iPhone - 当网络不存在时使用视图控制器的特殊问题
我正在使用导航控制器和一些视图控制器。我正在推动视图控制器来显示它们。 它的一个特殊问题是,如果有互联网,它就可以正常工作。当互联网不存在时,当我调用“pushViewController”时,它崩溃并显示以下错误:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/satya/Library/Application Support/iPhone Simulator/4.2/Applications/DDB23E6B-5723-44AC-B942-EA684E2A1E2B/MyApp.app> (loaded)' with name 'StoreDirectoryListViewController''
我无法识别问题。 我确信 XIB 已正确创建并且位于应用程序本身中。
有什么想法吗?
I'm using navigation controller and few view controllers. I'm pushing the view controllers to show them.
One peculiar problem with it is that, if internet is available, its working fine. When internet is not there, when I call "pushViewController", its crashing displaying the following error:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/satya/Library/Application Support/iPhone Simulator/4.2/Applications/DDB23E6B-5723-44AC-B942-EA684E2A1E2B/MyApp.app> (loaded)' with name 'StoreDirectoryListViewController''
I couldn't identify the problem.
I'm sure that XIB is created properly and it is with in the app itself.
Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
xib 在 IB 中是否正确链接?
Is the xib linked properly in IB?
我解决了这个问题。
首先,在数据库访问中,我正在打开它们,但没有关闭它们,因此存在大量数据库打开情况。
另外,我正在为 XIB 中的视图控制器创建 IBOutlet。我删除了它们并使用实例变量。这解决了我的问题。但我真的无法确定 wifi 与崩溃有何关系。
I solved the issue.
First of all, in the database access, I'm opening, but didnt' close them and so lots of database opens were there.
Also I am creating IBOutlets for the view controllers in XIB. I removed them and using instance variables. This solved my problem. But I really couldn't identify how wifi is related for the crash.