解决IOS could not load NIB in bundler
2015-05-06 08:52
260 查看
就在刚刚IOS运行的时候出现一个问题,就是在TableViewController中加载TableViewCell时不能加载nib文件。
然后就百度了一下,大部分说是loadNibNamed:@"nib名字" 时nib名字写错了,当然这也是一个问题,
但是我的问题不是这个引起的。
项目需要协同开发,同事提交个文件我更新了一下后,在Targets下的build phases中Copy Bundle Resources里面没有将nib文件加进来,把nib文件加进来后问题解决,项目运行流畅。
加载nib失败两种情况
1.nib文件的名字有没有写错(我一般都是复制,不会自己去写)
2.nib文件有没有加到项目中来(上面有介绍)
然后就百度了一下,大部分说是loadNibNamed:@"nib名字" 时nib名字写错了,当然这也是一个问题,
但是我的问题不是这个引起的。
项目需要协同开发,同事提交个文件我更新了一下后,在Targets下的build phases中Copy Bundle Resources里面没有将nib文件加进来,把nib文件加进来后问题解决,项目运行流畅。
加载nib失败两种情况
1.nib文件的名字有没有写错(我一般都是复制,不会自己去写)
2.nib文件有没有加到项目中来(上面有介绍)
相关文章推荐
- iOS-XIB错误,找不到方法:Could not load NIB in bundle
- 报错:'Could not load NIB in bundle: 'NSBundle解决办法
- iOS Could not load the "111.image" image referenced from a nib in th
- 报错:'Could not load NIB in bundle: 'NSBundle解决办法
- exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle解决办法
- ios xcode Could not load the "MyImage.png" image referenced from a nib in the bundle with identifier
- 'Could not load NIB in bundle: 'NSBundle解决办法
- ios xcode Could not load the "MyImage.png" image referenced from a nib in the bundle with identifier "com.mytest.MyProject"
- Eclipse:Could not create the view: Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart. 解决方法
- Could not load the "XX.jpg" image referenced from a nib in the bundle with identifier "cn.Norm"
- Could not load the "*.png" image referenced from a nib in the bundle with identifier
- (xcode5.0 DEV target:iOS5.0) Could not find a storyboard named 'Main_iPhone.storyboard' in bundle,解决
- 打不开Anaconda spyder:could not find or load the QT platform plugin "window in"简单解决方法
- reason: 'Could not load NIB in bundle: "XXXXXXX" with name 'xxCell'
- Could not load the "start.png" image referenced from a nib in the bundle with identifier "com.yourco
- 打印出现:Could not load the "" image referenced from a nib in the bundle with identifier
- Could not load the "" image referenced from a nib in the bundle with identifier "com.****.***
- 151211Exception : Could not load NIB in bundle
- Could not load NIB in bundle: 'NSBundle </Users/wyd/Library/Application Support/iPhone Simulator/5.0
- Could not load NIB in bundle: 'NSBundle (loaded)'