2019-06-19

2019-06-19  本文已影响0人  不要动

tableview视图可见范围内cell
NSArray *visiblePaths = [self.tableView indexPathsForVisibleRows];

UICollectionView视图可见范围内cell
NSArray *visiblePaths = [_collectionView indexPathsForVisibleItems];
刷新某个cell
[self.collectionView reloadItemsAtIndexPaths:@[indexPath]];

上一篇 下一篇

猜你喜欢

热点阅读