UITableViewで最下行以降は線を出さない

全体の流れ
1.UITableViewのフッターを設定するとそれ以降の行は表示されない。

【フッターに文字列を入れる場合】
-(NSString*)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section{
return @”これがフッターに出ます”;
}

【フッターの背景色を変える場合】
-(void)tableView:(UITableView *)tableView willDisplayFooterView:(UIView *)view forSection:(NSInteger)section{
[view setTintColor:[UIColor colorWithRed:1.f green:0.611f blue:0.905f alpha:1]];
}

コメントを残す

%d人のブロガーが「いいね」をつけました。