I currently have a login View and an Application view, I have successfully implemented validation on the login view and I need to programmatically shift to the application view on successful validation.
I understand I can add a segue to the login button and then call it programmatically like so...
[self performSegueWithIdentifier:@"LoginSegue" sender:sender];
But this will obviously be triggered whenever the button is clicked (As the segue was created attached to the button). I've just read that I should create a button (And hide it) and then make a programmatic call to the segue - this seems a bit 'wrong'.
How can a create a segue that isn't attached to any particular UI event?