解决点击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自定义类中添加以上代码

posted @ 2013-05-02 22:07  Story Of My Life  阅读(282)  评论(0编辑  收藏  举报