iOS: TableView如何刷新指定的cell 或section
生活随笔
收集整理的這篇文章主要介紹了
iOS: TableView如何刷新指定的cell 或section
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
/一個section刷新 ???
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; ???
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic]; ???
?
//一個cell刷新 ???
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0]; ???
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];?
轉載于:https://www.cnblogs.com/zhaoweizheng/p/4750508.html
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的iOS: TableView如何刷新指定的cell 或section的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: POJ - 3842 An Indus
- 下一篇: Android第三夜