For iOS 5 navigation between view controllers, the UIViewController
Class provides [self performSegueWithIdentifier:@"MySegue" sender:sender]
selector. Presumably, under the hood, the storyboard implementation knows the list of segue identifiers outgoing from any view controller, i.e. [@"MySegue", @"MySegue2"]
. Is there any way to access this list programmatically, to get the identifiers that can be passed to performSegueWithIdentifier?
This is an undocumented behaviour but
NSArray *segueTemplates = [self valueForKey:@"storyboardSegueTemplates"] ;
should return an array that includes all possible segue values that can be passed to performSegueWithIdentifier
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With