tableView刷新闪烁问题解决
2018-02-28 本文已影响0人
Tyler刘
[UIView performWithoutAnimation:^{
[_collectionView reloadSections:indexSet];
}];
//视图转换时不执行动画,参数为block对象,来执行你要执行的代码
+ (void)performWithoutAnimation:(void (^)(void))actionsWithoutAnimation
[UIView performWithoutAnimation:^{
[_collectionView reloadSections:indexSet];
}];
//视图转换时不执行动画,参数为block对象,来执行你要执行的代码
+ (void)performWithoutAnimation:(void (^)(void))actionsWithoutAnimation