override func setSelected(selected: Bool, animated: Bool)
{
let color = yourView.backgroundColor
super.setSelected(selected, animated: animated)
if (selected == true)
{
yourView.backgroundColor = color
}
}
override func setHighlighted(highlighted: Bool, animated: Bool)
{
let color = yourView.backgroundColor
super.setHighlighted(highlighted, animated: animated)
if (highlighted == true)
{
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.