How to hide empty UITableViewCells showing in UITableView with plain style - IOS?
cocoa-touch, ios, iphone, uitableview
Solution
you add UIview in footer of uitabeview use of xib or tableview delegate method
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section;
{
return 1;
}
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section;
{
return yourview;
}
Problem
UItableView is showing with empty rows like below... how to hide it without changing the tableview style. Do I need to resize the table View, if so how can I know the height exactly to set.