New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
iOS Development Discussion on developing apps for the iOS platform.

How to from viewController to NavigationController?

Post Reply New Thread Subscribe

Thread Tools

Member Since: Jul 13, 2013
Posts: 1
fabiohenrique is on a distinguished road

fabiohenrique is offline
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

The problem:

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!
QUOTE Thanks

Post Reply New Thread Subscribe

« Provisioning profile issues | Retrive Apps name in iphone device »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Need Suggestions Naming ViewController Loon3y iOS Development 0 12-03-2012 06:59 AM
UIAlertView in AppDelegate have to call Method in ViewController poke iOS Development 7 05-20-2012 04:59 AM
Como chamar uma nova viewController através do clique de um botão dinâmico> lftapajos iOS Development 1 02-01-2012 10:46 AM
How can I call another viewController through an event? lftapajos iOS Development 0 02-01-2012 09:26 AM
Displaying a UIImageView in main ViewController after choosing from UIPopOver Ollie177 iOS Development 2 11-14-2011 06:03 PM

All times are GMT -4. The time now is 08:47 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?