Add a restart button to my storyboard viewcontroller to link to its self
问题 I have a viewcontroller in my storyboard that is a game. I have added a restart button and linked it to the same viewcontroller so that when the player dies they can click that and the game will start all over again. My problem is that when you click it and it restarts the game starts glitching. Any suggestions or solutions. I cant use a unwind seague so what should I do. 回答1: It really depends on your code, specifically in your viewDidLoad. Create an IBAction for that restart button in your