I want change button background for different state. I try so:
@IBAction func addToShedulerAction(sender: UIButton) { println(sender.backgroundCol
You don't compare colors using the == operator. You do it like this and you need the ! to unwrap the optional color:
==
!
if sender.backgroundColor!.isEqual(UIColor.redColor()) { }
Also, remove the extraneous = in your assignment statement. It should be:
=
sender.backgroundColor = UIColor.whiteColor()