如何在 swift 3 中重新加载没有动画的特定单元格?
How to reload a specific cell with out animation in swift 3?
我想在 table 视图中点赞 post,在收到回复后,我需要在我的 table 视图中更新点赞状态,而用户不知道 table 正在重新加载。
let indexPath = IndexPath(item: tag, section: 0)
self.tableCommunity.reloadRows(at: [indexPath], with: .fade)
好友尝试使用代码:-
let indexPath = IndexPath(item: tag, section: 0)
self.tableCommunity.reloadRows(at: [indexPath], with: .none)
希望它能奏效。
我想在 table 视图中点赞 post,在收到回复后,我需要在我的 table 视图中更新点赞状态,而用户不知道 table 正在重新加载。
let indexPath = IndexPath(item: tag, section: 0)
self.tableCommunity.reloadRows(at: [indexPath], with: .fade)
好友尝试使用代码:-
let indexPath = IndexPath(item: tag, section: 0)
self.tableCommunity.reloadRows(at: [indexPath], with: .none)
希望它能奏效。