码迷,mamicode.com
首页 > 其他好文 > 详细

tableviewcell的取消选中,高亮

时间:2015-06-26 14:46:00      阅读:81      评论:0      收藏:0      [点我收藏+]

标签:

1.取消多余cell的分割线

 

UIView *view = [UIView new];

    

    view.backgroundColor = [UIColor clearColor];

    

    [tableView setTableFooterView:view];

 

2.取消cell选中状态

代理 didselected

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

{

    // 取消选中状态

    [tableView deselectRowAtIndexPath:indexPath animated:NO];

}

 

3.取消cell点击时高亮状态

代理cell中

//取消cell的高亮状态

        cell.selectionStyle = UITableViewCellSelectionStyleNone;

tableviewcell的取消选中,高亮

标签:

原文地址:http://www.cnblogs.com/wskgjmhh/p/4602116.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!