NSString* CellID = @"BookCell";
UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:CellID];
if (cell == nil) {
cell = [[[NSBundle mainBundle] loadNibNamed:CellID owner:self options:nil] lastObject];
// NSLog(@"%@",[[NSBundle mainBundle] loadNibNamed:CellID owner:self options:nil]);
}使用xib定制uitalbeViewCell 加载方式
本文介绍了如何在iOS开发中使用Nib文件加载视图控制器,包括直接通过注册标识获取和间接通过bundle加载两种方法。

被折叠的 条评论
为什么被折叠?



