Chinaunix首页 | 论坛 | 博客
  • 博客访问: 696452
  • 博文数量: 260
  • 博客积分: 7033
  • 博客等级: 少将
  • 技术积分: 2633
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-13 23:15
文章分类

全部博文(260)

文章存档

2012年(2)

2011年(41)

2010年(78)

2009年(139)

我的朋友

分类: 嵌入式

2011-07-26 20:05:59

由于删除了mainwindow.xib文件,使用代码生成了UIWindow,运行后,出现如下错误:


2011-07-26 20:03:43.780 TestUdpClient[864:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'MainWindow''



解决方法:

1) plist中删除Main nib file base name

2) main.c中, UIApplicationMain最后一个参数设置为UIApplicationDelegate的字符串名称。

阅读(29262) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~