iOS 取消tableviewcell 点击效果

来源:互联网 发布:java类库是什么 编辑:程序博客网 时间:2024/05/17 08:58

  cell.selectionStyle = UITableViewCellSelectionStyleNone;// 点击无效果

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // 移开选中效果消失
    [tableView deselectRowAtIndexPath:indexPath animated:NO];
}

0 0
原创粉丝点击