iOSiOS滚动视图tableview,collectionview

UITableview刷新某一个cell或section

2016-02-27  本文已影响810人  寒桥

//一个section刷新

NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];

[tableview reloadSections:indexSetwithRowAnimation:UITableViewRowAnimationAutomatic];

//一个cell刷新

NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3inSection:0];

[tableView reloadRowsAtIndexPaths:[NSArrayarrayWithObjects:indexPath,nil]withRowAnimation:UITableViewRowAnimationNone];

上一篇 下一篇

猜你喜欢

热点阅读