A revive button

Hi All,

I'm making a flappy bird clone and I have a touchesBegan override function. The problem is I can't do a revive button at the end of the game. Is there a button override function that can override touchesBegan.

Any help is appreciated.

Replies

Just hide the button by default then unhide it after the game ends. It will still work in touchesBegan


Edit: use this to hide and unhide- yourButtonName.isHidden = true/false