iOS开发之-[UITableView _configureCe
作者:
朱晓晓的技术博客 | 来源:发表于
2018-04-12 16:19 被阅读31次1.代码忘记添加注释的部分
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell *ncell = [tableView dequeueReusableCellWithIdentifier:identifierdata];
//判断是否为空,才去执行初始化操作
// if(ncell == nil){
//
//ncell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifierdata];
//
// }
2.也有可能是没有添加registerClass:(nullable Class)cellClass forCellReuseIdentifier:(NSString *)identifier方法
本文标题:iOS开发之-[UITableView _configureCe
本文链接:https://www.haomeiwen.com/subject/iscfkftx.html
网友评论