나는 사용자 정의보기에서 한 tabBar 가득 바닥 글 jQuery과, 다음 코드를 사용하여 수행이 : 테이블을 작성하는 데 필요한 것보다 적은 행이 때 그렇다, 사랑하고있다UITableView, 바닥 글을 화면 하단에 유지 하시겠습니까?
- (CGFloat)tableView:(UITableView *)tableView
heightForFooterInSection:(NSInteger)section {
//differ between your sections or if you
//have only on section return a static value
return 49;
}
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
if(footerView == nil) {
//allocate the view if it doesn't exist yet
footerView = [[UIView alloc] init];
[footerView addSubview:self.tabBarView];
}
//return the view for the footer
return footerView;
}
바닥 글이 있기 때문에 표가 더 이상 빈 행을 만들지 않으므로 화면에서 바닥 글이 화면 위로 이동합니다.
그래서, 사용자 정의 바닥 글을 화면 하단에 고정 시키거나, 예전과 같이 빈 행을 tableView에 만들 수있는 방법을 아는 사람이 있습니까?
감사합니다. 가레스