csdnceshi75
衫裤跑路
2013-01-25 10:45

如何删除 UITableView 中的空单元格? [重复]

  • uitableview
  • objective-c
  • ios

This question already has an answer here:

i am trying to display a simple UITableView with some data. I wish to set the static height of the UITableView so that it doesn't displays empty cells at the end of the table. how do I do that?

code:

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 
    NSLog(@"%d", [arr count]);
    return [arr count];
}
</div>

转载于:https://stackoverflow.com/questions/14520185/how-to-remove-empty-cells-in-uitableview

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

11条回答

为你推荐