I have an existing segue linked to a button. I would like the button and segue to remain but need a way to trigger the segue programmatically in my view did load after a successful IF statement. The segue was created using storyboard.
I tried performing performSegueWithIdentifier but there is no "self sender" because there is no UI being triggered.
[self performSegueWithIdentifier:@"segueIdentifier" sender:self];
Is there a simple way to do this? No phantom buttons or forcing the existing button to execute.
viewWillAppearorviewDidAppearrather thanviewDidLoad- Paulw11