29. UITableView 의 남 은 표 선 제거

tableView 를 설정 한 tableFooterView
tableView.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: 0, height: 0))

마지막 셀 시스템 분할 라인 상단, 참조:http://blog.sina.com.cn/s/blog_4cd8dd130102v6xq.html
static void setLastCellSeperatorToLeft(UITableViewCell* cell)
{
    if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
        [cell setSeparatorInset:UIEdgeInsetsZero];
    }
    
    if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
        [cell setLayoutMargins:UIEdgeInsetsZero];
    }
    
    if([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]){
        [cell setPreservesSuperviewLayoutMargins:NO];
    }
}

좋은 웹페이지 즐겨찾기