【发布时间】:2010-09-10 18:58:44
【问题描述】:
我正在使用 UITableViewCell 加载,
[[NSBundle mainBundle] loadNibNamed:@"BlogCell" owner:self options:nil];
cell = blogCell;
self.blogCell = nil;
blogCell 是 BlogCell.xib 的出口
实际的 UITableViewCell 是 BlogCell 类型,它是 UITableViewCell 的子类。
在我使用的 BlogCell 类中
-(id)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
//initialisation of some cell properties here
return self;
}
这是正确的吗?这是您处理从笔尖加载的单元格初始化的方式吗?
谢谢
【问题讨论】:
标签: iphone objective-c uitableview nib