美文网首页
隐藏某一行静态的cell

隐藏某一行静态的cell

作者: Kloar | 来源:发表于2017-03-22 18:02 被阅读67次

//设置是否显示第一行cell 判断的理由是

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

{

UITableViewCell* cell = [super tableView:tableView cellForRowAtIndexPath:indexPath];

if (cell ==self.hideCell) {

if (_showIsOrNO ==NO) {

self.hideCell.hidden = YES;

return 0;

}

else{

self.hideCell.hidden = NO;

return 45;

}

}

return [super tableView:tableView heightForRowAtIndexPath:indexPath];

}

相关文章

网友评论

      本文标题:隐藏某一行静态的cell

      本文链接:https://www.haomeiwen.com/subject/pytanttx.html