2012-03-22 1 views
-1

iOS 설정 페이지에서보기를 보았습니다. 만드는 방법이 궁금해서 '정적'콘텐츠가있는 UITableViewController처럼 보입니다. 아래 '트위터'셀처럼 텍스트 섹션을 만드는 법. 내 앱에서 '활동 지표보기'를 추가하고 싶습니다. 그러나보기에 더 많은 섹션을 추가하면 타원형 '셀'이 나타납니다. 트위터 세포 아래uitableview에 셀이없는 섹션

enter image description here

답변

1

이 "텍스트 섹션은"단지 섹션 바닥 글입니다. 당신의 TableView의 데이터 소스 재정에서 이 방법 : 당신이 바닥 글 등의 사용자 정의보기를 원하는 경우에도

- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section 
{ 
    return @"This is my footer's text!"; 
} 

, 재정의 :

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section 
{ 
    // myFooterView is a custom view. Allocated and initialized 
    return myFooteView; 
} 
관련 문제