UITableView reload使用时需要先移除cell上所有的视图,再去加载新的UI到Cell上。
下面是移除cell上的UI方法:
- (void)tableView:(UITableView*)tableView willDisplayCell:(UITableViewCell*)cell
forRowAtIndexPath:(NSIndexPath*)indexPath
{for (UIView* subView in cell.contentView.subviews) {[subView removeFromSuperview];}