空のUITableCellsを非表示にするにはどうすればよいですか? 私のテーブルセルには背景が含まれているので、このコード行を試しました
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 100)];
view.backgroundColor = [UIColor whiteColor];
return view;
}
しかし、うまくいきませんでした(私のuitablecellのバックグラウンドのため)
バックグラウンド:
[tabelView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"table.png"]]];