본문 바로가기

프로그램 경험/iOS

[iPhone] 그룹 설정된 테이블뷰 바탕색상 변경하기

UITableView *table = (UITableView *) [self.view viewWithTag:2];
UIView *backgroundView = [[UIView alloc] initWithFrame: table.frame];
backgroundView.backgroundColor = [UIColor whiteColor];
table.backgroundView = backgroundView;
[backgroundView release];