[UIView animateWithDuration:0 animations:^{
[UIView performWithoutAnimation:^{
[self.collectionView reloadData];
}];
}completion:^(BOOL finished) {
}];
图片闪屏 通过判断是否加载过 且url相等 则不加载解决
本文介绍了一种解决UICollectionView中图片闪屏的问题,通过检查图片是否已加载及URL是否相同来避免重复加载,从而提高用户体验。
[UIView animateWithDuration:0 animations:^{
[UIView performWithoutAnimation:^{
[self.collectionView reloadData];
}];
}completion:^(BOOL finished) {
}];
图片闪屏 通过判断是否加载过 且url相等 则不加载解决

被折叠的 条评论
为什么被折叠?
