- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
UIColor *color = self.yourView.backgroundColor;
[super setSelected:selected animated:animated];
if (selected == YES)
{
self.yourView.backgroundColor = color;
}
}
-(void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated
{
UIColor *color = self.yourView.backgroundColor;
[super setHighlighted:highlighted animated:animated];
if (highlighted == YES)
{
self.yourView.backgroundColor = color;
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.