初学IOS,TableViewCell为自定义的cell。
在- (void)viewDidLoad {
NSString * identifier = @"TableViewCell";
[_tvHistory registerClass:[TableViewCell class] forCellReuseIdentifier:identifier];
}
在
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
NSString * identifier = @"TableViewCell";
TableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier forIndexPath:indexPath];
//省略设置自定义cell中的各个控件的内容的代码
retrun cell;
}
为什么我运行之后,tableview里面的内容不显示呢?