I think that with iOS7 itβs become very easy to integrate through the storyboard
I am currently learning new features in iOS7 and have found this simple solution, but maybe it was relevant even in previous versions, I'm not sure.
First you need to connect the VC presentation to the target VC (that is, the only connection that is needed), then in the storyboard attribute inspector, select a style that will be modal, in the identification inspector, transfer your VC fairy file and make sure that you check the "use storyboardID" checkbox ,
If he has not added this method to your VC view yet:
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { YourTargetVC * targetVC = (YourTargetVC *)segue.destinationViewController; if(nil != targetVC) {
Now that you want to show your target VC from your current VC, you can use:
[self performSegueWithIdentifier:(NSString *) sender:(id)];
where the identifier is your viewController storyboardID and the sender is the view that triggered the action, this method will call up the storyboard scene, so the [prepareForSegue: sender:] method will be called, allowing you to make the last change before the targetViewController appears.
supergegs Sep 28 '13 at 17:28 2013-09-28 17:28
source share