方法一(推荐)、
[UIView performWithoutAnimation:^{
[collectionView reloadData];
}];
方法二、
[UIView animateWithDuration:0animations:^{
[collectionView performBatchUpdates:^{
[collectionView reloadData];
} completion:nil];}];
方法三、
[UIView setAnimationsEnabled:NO];
[collectionView performBatchUpdates:^{
[collectionView reloadData];
} completion:^(BOOL finished){
[UIView setAnimationsEnabled:YES];
}];
网友评论