을 변경하는 것이 가능합니까?제목으로 UITableView 섹션 제목 배경색
3
A
답변
4
당신은 ..
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return 30;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *v = [[UIView alloc] init];
[v setBackgroundColor:[UIColor blackColor]];
return [v autorelease];
}
이 무료로 양손 그래서 오타를 용서했다, 등 사용
UPDATE가 필요합니다 '그룹화'테이블이 경우에만 작동합니다. 테이블이 그룹화되었거나 정상입니까?
0
예. 그것은 UIView의를 반환으로
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
, 당신은 당신이 좋아하는 무엇으로 설정할 수 있습니다하거나
[UIView setBackgroundColor:UIColor];
관련 문제
- 1. UITableView 배경색 사용자 정의
- 2. UITableViewController 섹션 헤더 제목 자르기
- 3. 제목/제목 div에 대한 CSS의 배경색 퍼즐
- 4. UITableView 섹션 색인
- 5. UITableView 섹션 관련 문제
- 6. UITableView : 섹션 컨트롤을 삭제하십시오.
- 7. UITableview 섹션 문제
- 8. UITableview 섹션 오류 - objc_msgSend
- 9. 다중 섹션 UITableView 문제
- 10. NSFetchedResultsController 및 UITableView 섹션
- 11. UITableView : 섹션 식별자 문제
- 12. SimpleExpandableListAdapter 섹션 제목
- 13. NSDictionary 개체의 UITableView 섹션 구현
- 14. iPhone UITableView 중첩 된 섹션
- 15. 편집 모드의 UITableView 섹션 헤더
- 16. 사이드 섹션 헤더 이미지가있는 UITableView
- 17. UITableView 섹션 헤더의 색 변경
- 18. 편집 할 수없는 UITableView 섹션?
- 19. UITableView 섹션 헤더 iOS 5
- 20. UITableView : 동적으로 섹션 수를 결정합니다.
- 21. UITableView 섹션 인덱스가 응답하지 않습니다.
- 22. 목차에서 긴 섹션 제목 깨기
- 23. 섹션 헤더 제목의 배경색 변경 (일반 테이블 뷰)
- 24. UITableview 검색 막대를 사용할 때 배경색
- 25. WPF 제목 표시 줄 배경색 변경
- 26. UITableView 섹션 머리글 또는 바닥 글에서 섹션 인덱스를 결정 하시겠습니까?
- 27. UITableView reloadSections는 행 상단에 섹션 헤더를 만듭니다.
- 28. UITableView 섹션 뷰어의 UIActivityIndicatorView가 방향 변경시 사라집니다.
- 29. 그룹화되지 않은 테이블의 UITableView 섹션 머리글 높이
- 30. NSFetchedResultCintroller 섹션 + UITableView + 2 여분의 행