解决点击cell后,subview也跟着高亮的问题
- (void)setHighlighted:(BOOL)highlighted animated (BOOL)animated { [super setHighlighted:highlighted animated:animated]; if(highlighted) { [(UIButton *)self.accessoryView setHighlighted:NO]; } } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; if(selected) { [(UIButton *)self.accessoryView setHighlighted:NO]; } }
即在cell自定义类中添加以上代码