iOS 刷新 UITableView某个 section 或 cell

来源:互联网 发布:淘宝营销视频教程 编辑:程序博客网 时间:2024/06/10 01:01

 //section刷新

    NSIndexSet *indexSet=[[NSIndexSetalloc]initWithIndex:1];

    [tableViewreloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];

    //cell刷新

    NSIndexPath *indexPath=[NSIndexPathindexPathForRow:3inSection:1];

    [tableViewreloadRowsAtIndexPaths:[NSArrayarrayWithObjects:indexPath,nil]withRowAnimation:UITableViewRowAnimationNone];


0 0
原创粉丝点击