美文网首页iOSiOS滚动视图tableview,collectionview
UITableview刷新某一个cell或section

UITableview刷新某一个cell或section

作者: 寒桥 | 来源:发表于2016-02-27 14:39 被阅读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];

    相关文章

      网友评论

        本文标题:UITableview刷新某一个cell或section

        本文链接:https://www.haomeiwen.com/subject/yyvwkttx.html