UITableView除开separator

UITableView去除separator在使用UITableView的时候会遇到出现许多无用的separator的情况,若想解决这个问题

UITableView去除separator
在使用UITableView的时候会遇到出现许多无用的separator的情况,若想解决这个问题,只需将table view的footer设为一个空的view。例如:


[cpp] view plaincopyprint?

    UIView *v = [[UIView alloc] initWithFrame:CGRectZero]; 

    [tableView setTableFooterView:v];