//局部section刷新
NSIndexSet *nd=[[NSIndexSet alloc]initWithIndex:1];//刷新第二个section
[tviewreloadSections:ndwithRowAnimation:UITableViewRowAnimationAutomatic];
//局部cell刷新
NSIndexPath*te=[NSIndexPath indexPathForRow:2inSection:0];//刷新第一个section的第二行
[tableViewreloadRowsAtIndexPaths:[NSArray arrayWithObjects:te,nil]withRowAnimation:UITableViewRowAnimationMiddle];ios UITableView 局部刷新功能
最新推荐文章于 2017-02-06 11:29:13 发布
本文介绍如何使用Swift对UITableView进行局部刷新操作,包括section和cell的刷新方法。通过创建NSIndexSet或NSIndexPath对象来指定需要刷新的部分,并使用reloadSections或reloadRowsAtIndexPaths方法完成刷新。
1320

被折叠的 条评论
为什么被折叠?



