tableview刷新某个分区或某行

2016-07-28  本文已影响0人  小白谈理财

摘自:http://blog.csdn.net/floatingdreamsh/article/details/50752203,在此多谢

//一个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];

上一篇 下一篇

猜你喜欢

热点阅读