當(dāng)collectionview reloadData
時(shí),如果cell中包含Image余境,那么Image會(huì)閃爍一下陕悬,原因是UIView的隱式動(dòng)畫(huà)造成的,可以通過(guò)下面方法解決絮宁。
[UIView setAnimationsEnabled:NO];
[collectionView performBatchUpdates:^{
[collectionView reloadData];
} completion:^(BOOL finished) {
[UIView setAnimationsEnabled:YES];
}];