I want to pass an Int
to a function so I can change the background color of the right UIButton
Example:
@IBOutlet weak var button1: UIButton!
@IBOutlet weak var button2: UIButton!
changeBackground(1);
func changeBackground(number:Int){
button(number).backgroundColor = UIColor.redColor()
}