[IOS / Object-C] - 테이블 뷰 세션칸 배경 색상바꾸기 / viewForHeaderInSection

IOS ( Object-C ) 2014. 12. 18. 14:47
반응형

- (UIView *) tableView : (UITableView *) tableView viewForHeaderInSection : (NSInteger) section {

  UIView *viewSection = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 30)];

  [viewSection setBackgroundColor:[UIColor red]];


  return viewSection;

}

반응형
: