取消cell点击色

方法一:

在表格视图服用时使用:

             UIView *backView = [[UIView alloc] initWithFrame:cell.frame];

              cell.selectedBackgroundView = backView;

              cell.selectedBackgroundView.backgroundColor = [UIColor clearColor];

方法二:

在自定义cell中使用

                   self.selectionStyle = UITableViewCellAccessoryNone;

posted @ 2015-09-06 17:43  BN笨的很想飞  阅读(233)  评论(0)    收藏  举报