2013-10-09 3 views
0

UIView (컨테이너보기)를 UITableViewController에 추가하려고합니다. 어떤 이유로 UITableView 구분 기호는 UIView를 통해 표시됩니다. 난 당신이뿐만 아니라 그 아래 바닥 글보기 jQuery과 무승부 분리 라인을 설정하지 않는 한UIView를 통해 UITableViewSeparator를 볼 수있는 이유는 무엇입니까?

UIView *container = [[UIView alloc] initWithFrame:CGRectMake(0, 200, self.view.width, 50)]; 
container.opaque = YES; 
container.backgroundColor = [UIColor colorWithRed:224.0/255.0 green:224.0/255.0 blue:224.0/255.0 alpha:1.0]; 
[self.view container]; 

답변

1

가있는 UITableViewController

self.tableView.tableFooterView = [UIView new]; 

을의의 viewDidLoad이 시도 아이폰 OS 7을 실행하고 있습니다. 그들을 제거하는 방법 중 하나는 제가 위에서했던 것처럼 그것을 비어보기를 설정하거나 근무

+0

을 UITableViewCellSeparatorStyleNone하는

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { // This will create a "invisible" footer return 0.01f; } 

또는

세트 separatorStyle 할 수 있습니다! 왜 그래도 설명해 주시겠습니까? – mergesort

+0

업데이트 된 답변 확인 – msk

관련 문제