This question already has an answer here:
- Eliminate extra separators below UITableView 31 answers
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