iOS技术

iOS 解决UITableView刷新数据带来的界面跳动问题

2022-05-07  本文已影响0人  捡书

很简单,在刷新cell的地方调用UIView的类方法即可:

[UIView performWithoutAnimation:^{
    [self.tableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:index inSection:0]] withRowAnimation:UITableViewRowAnimationNone];
}];
上一篇 下一篇

猜你喜欢

热点阅读