开发者

Hiding UITableViewCell without touching UITableViewDataSource

I'm currently stuck at how to hide a UITableViewCell. I've already tried [cell setHidden:YES]; but this leaves an empty space between the "to-hide" cell and the next cell. Also I want to avoid touching the UITableView's data source.

I'm more looking for a way to do it in a "CSS display:none;" fashion. Anyone solved that kind of problem or can point me to helpfull resources?

T开发者_开发技巧hanks in advance!


Well currently there is no other way to-hide a cell in UITableView but you can file a bug report to apple if you think its necessary.

bugreport.apple.com.

But I will tell you not to cause its not that difficult to delete a cell, all you need to do is call this method on your UITableView object.

- (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜