【发布时间】:2016-09-22 13:20:28
【问题描述】:
我正在从 xib 加载单元格。但随后表格视图控制器打开单元格是白色的。只有在单击单元格后才会显示实验室和其他内容。
- (void)viewDidLoad {
[super viewDidLoad];
self.tableView.delegate = self;
self.tableView.dataSource = self;
[self.tableView registerNib:[UINib nibWithNibName:@"FixedCell" bundle:nil] forCellReuseIdentifier:@"FixedCell"];
}
//cellForRow......
if(indexPath.section==1){
if(indexPath.row==0){
FixedCell *cell = [tableView dequeueReusableCellWithIdentifier:@"FixedCell"];
return cell;
}
}
谁能找到,这里有什么问题?
【问题讨论】:
-
只需编辑您的问题并提供更多详细信息,以便我们更好地理解并相应地回答..
标签: ios objective-c uitableview xib