自定义的UITableViewCell 中有一个控件UIProgressView ,需要对其progress进行频繁更新,若使用下面的方法有可能会造成tableview闪屏:
[self.tableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:i inSection:0]] withRowAnimation:UITableViewRowAnimationNone];
解决方法:
获取到需要更新的UIProgressView,进行更新 。
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:i inSection:0];
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
cell.progressView.progress = progress;
iOS 技术交流群:488530658