美文网首页
ios中调用tableview的选中与被选中

ios中调用tableview的选中与被选中

作者: summerTa | 来源:发表于2018-09-03 17:59 被阅读0次

       if(btn.selected) {

              //  NSIndexPath *indexPath = [NSIndexPath indexPathForItem:0 inSection:2];

                [_tableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionTop];

            }else{

                 [_tableView deselectRowAtIndexPath:indexPath animated:NO];

    相关文章

      网友评论

          本文标题:ios中调用tableview的选中与被选中

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