I have created a UIButton on the Interface Builder (Main.storyboard). I Connected two actions to the View Controller swift file, as you can see below:
@IBAction func backDownPress(sender: UIButton) {
backButon.backgroundColor = UIColor.blackColor()
}
@IBAction func backNormalPress(sender: UIButton) {
backButon.backgroundColor = UIColor.clearColor()
performSegueWithIdentifier("pushFromRight", sender: self)
}
The top action is a Touch Down, and the bottom is a Touch up Inside.
However, once I try to run the app on either the Simulator or my iPhone, the touch doesn't register. When I try to just put a print line in the action, it also doesn't do anything.
Looking through the rest of my code, I can't find anything like disabling the user interaction, so I don't know why this doesn't work.