我正在尝试在 tableview 中点赞帖子,在得到响应后,我需要在 tableview 中更新类似状态,而不知道用户表正在重新加载。
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)
希望它会起作用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句