现在的位置: 首页 > 综合 > 正文

ios uitableview 刷新某一个cell 或 section

2018年05月11日 ⁄ 综合 ⁄ 共 402字 ⁄ 字号 评论关闭
//一个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]; 

转自:http://blog.csdn.net/yangtb2010/article/details/8672713

抱歉!评论已关闭.