首页 > 学院 > 开发设计 > 正文

如何去掉UITableView的单元格点击效果

2019-11-06 09:54:02
字体:
来源:转载
供稿:网友

    //设置tableView为只读权限

    [_tableView setAllowsSelection:NO];

    //设置单元格选择样式

//    cell.selectionStyle = UITableViewCellSelectionStyleNone;

#PRagma mark tableView代理源

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{

        [tableView deselectRowAtIndexPath:indexPathanimated:NO];

    

}


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表