I created a segue from ViewController1 to ViewController2 and set its id to "getStarted".
I added the following code as a button click action to move to the second view controller by clicking that button:
- (IBAction)getStarted:(id)sender {
[self performSegueWithIdentifier:@"getStarted" sender:nil];
}
But Xcode keeps giving the error:
-[ViewController goto:]: unrecognized selector sent to instance
What is going on here? I don't even have any goto method in my code! Btw, I chose "Present Modally" as the Segue type.
Aucun commentaire:
Enregistrer un commentaire