07-14-2013, 09:38 AM #1
How to from viewController to NavigationController?
- Member Since
- Jul 14, 2013
Hi everyone. I'm new to objective c but I think I know what I'm doing wrong, I just does not know how to fix it.
I'm using xcode 4.6.3, using storyboards
I have an initial viewController. In this view controller I have a picker View and a button.
Based on what the user chooses I want that he goes to ViewController A or ViewController B.
Until here, everything is fine, I know how to do this. The problem is I want that the View Controller B be managed by an Navigation Controller. So instead instanciate the ViewController B, I should instanciate the navigation Controller.
To call the ViewController B I'm using:
AgeViewController *ageViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"AgeViewC ontroller"];
[self presentViewController:ageViewController animated:YES completion:nil];
Could someone help me?
Thanks in advance!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Loon3y in forum iOS DevelopmentReplies: 0Last Post: 12-03-2012, 07:59 AM
By poke in forum iOS DevelopmentReplies: 7Last Post: 05-20-2012, 05:59 AM
By lftapajos in forum iOS DevelopmentReplies: 1Last Post: 02-01-2012, 11:46 AM
By lftapajos in forum iOS DevelopmentReplies: 0Last Post: 02-01-2012, 10:26 AM
By Ollie177 in forum iOS DevelopmentReplies: 2Last Post: 11-14-2011, 07:03 PM