一句代码,cell分割线补全,tableView局部刷新

//分割线从头开始显示

    tableView.separatorInset =UIEdgeInsetsMake(0,0, 0,0);


 NSIndexSet * nd=[[NSIndexSet alloc]initWithIndex:1];//刷新第二个section

[tableView reloadSections:nd withRowAnimation:UITableViewRowAnimationAutomatic];


NSIndexPath *te=[NSIndexPath indexPathForRow:1 inSection:0];//刷新第一个section的第二行

[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:te,nilwithRowAnimation:UITableViewRowAnimationAutomatic];



猜你喜欢

转载自blog.csdn.net/Kevin_love_Chrissy/article/details/53671691
今日推荐