tableview行數比較少的情況,會導致空的地方也還是會有cell線
tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];根據需求去掉某些行的線
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{//第0行的cell線去掉if(indexPath.row == 0){ cell.separatorInset = UIEdgeInsetsMake(0,SCREEN_WIDTH, 0, 0); }}新聞熱點
疑難解答