UITableViewCell Separator disappearing in iOS7

前端 未结 30 732
轮回少年
轮回少年 2020-12-07 08:31

I have some strange issue with UITableView only in iOS 7.

UITableViewCellSeparator disappears above the first row and below the last row. S

30条回答
  •  眼角桃花
    2020-12-07 09:04

    What made the difference for me was reloading the row for which the bottom separator line would not appear:

    NSIndexPath *indexPath = 
         [NSIndexPath indexPathForRow:rowIndex inSection:sectionIndex];  
    [self.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
    

提交回复
热议问题