您的位置:首页 > 其它

tableview didse

2016-03-04 11:07 483 查看
tableview didse

tableview didselect去除点击效果

有两个:
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{// UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];// [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; (这种是没有点击后的阴影效果) UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; cell.selected = NO; (这种是点击的时候有效果,返回后效果消失)

tableviewCell中Cell不能被点击


cell.
selectionStyle = UITableViewCellSelectionStyleNone;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  tableview didse