I have a UIBarButtonItem
defined as follows:
let cardNavButton: UIBarButtonItem = UIBarButtonItem(image: UIImage(named: "card")!, style: UIBarButtonItemStyle.Bordered, target: self, action: self.headerCardButtonSelector)
self.navigationItem.rightBarButtonItem = cardNavButton
cardNavButton.tintColor = UIColor.whiteColor()
When the user tapped the button its color changes. How can I define the color which is displayed when the user tapps the button?
The image which is displayed in this button has more than one color but it is displayed in only one color. How can I change that?