隐藏某一行静态的cell

2017-03-22  本文已影响67人  Kloar

//设置是否显示第一行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];

}

上一篇 下一篇

猜你喜欢

热点阅读