Iphone开发笔记--Custom UITableVIewCell
2011-03-07 21:33
323 查看
Custom UITableVIew有时会遇到EXC_BAD_ACCESS
可能原因
1、调用同类型xib所致
在TeamInfoVC类中调用
NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"teamInfoVC" owner:self options:nil];
// Grab a pointer to the first object (presumably the custom cell, as that's all the XIB should contain).
ImageCell* cell = [topLevelObjects objectAtIndex:0];
所以在同个xib下,只能调用一次。或者从其他xib中建立custom tableviecell
可能原因
1、调用同类型xib所致
在TeamInfoVC类中调用
NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"teamInfoVC" owner:self options:nil];
// Grab a pointer to the first object (presumably the custom cell, as that's all the XIB should contain).
ImageCell* cell = [topLevelObjects objectAtIndex:0];
所以在同个xib下,只能调用一次。或者从其他xib中建立custom tableviecell
相关文章推荐
- [IOS] iphone开发之UITableView之UITableViewCell [待续中。。。]
- iphone开发之UITableViewCell自适应高度
- iPhone开发笔记——去除字符串左右空格
- iPhone开发笔记(二):数组相关
- iPhone开发学习笔记_剪切板的使用
- iPhone开发笔记(1)MPMoviePlayerController的用法和播放时只有声音没有图像的解决办法
- iOS开发--UITableViewCell侧滑多个按钮(系统仅支持iOS8以上)
- iphone开发笔记目录
- 我的iphone开发学习笔记(四)使用UIWebView,UISegmentedControl
- iPhone开发入门笔记(一)—快速入门
- iphone开发笔记
- iOS开发笔记- cell里放textView根据输入的文字动态改变textView以及cell高度
- IPhone开发学习笔记:单例模式的实现
- 三十而立,从零开始学ios开发(十二):Table Views(中)UITableViewCell定制 - minglz - 博客园
- 我的iphone开发学习笔记(七): 使用UITableViewController
- iOS开发笔记--cell最右边显示箭头,字符,自定义分割线
- Iphone自定义UITableViewCell
- iPhone/iPad高级应用与手游开发学习笔记:多点触摸与手势检测(一:UITapGestureRecognizer)
- iPhone开发学习笔记004——自定义背景透明非全屏弹出窗口,子类化UIWindow
- iPhone 3.0 SDK开发秘籍笔记(第三章)