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.
Josh kahane
source share