Cracks and tips iOS 5

I started my iOS 5 application with a storyboard, however, if I want to programmatically present the presentation, how can I? I cannot use initWithNibName , since there are no more nob files, but storyboards.

eg. this will give me an empty UINavigationView, not my Builder interface:

 setupView = [[setupController alloc] initWithNibName:nil bundle:nil]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:setupView]; [self presentModalViewController:navigationController animated:YES]; 

If I use the button in the interface builder (in my storyboard) and associate two views with it using "Modal", this works like a charm, but I want to do it programmatically.

Thanks.

+7
source share
2 answers

Turns out I think I was looking for performSegueWithIdentifier , and that works.

+8
source
+6
source

All Articles