Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-14-2010, 06:09 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 5
sahil4u91 is on a distinguished road
Default Unable to navigate through PushViewController

Hi,

I've got a tableViewController application with a navigationBar. On the app launch, I check a condition and load different views based on the result of it.

In the newly loaded view, I've retrieved a reference of the appDelegate as..
Code:
LoadAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
In the newly loaded view, which is a table view, I'm able to retrieve the title of the rootviewNavigationBar with the following code.
Code:
appDelegate.loadTabController.navigationItem.title
But when I try to push a viewController by clicking on a cell, it does not navigate to another view, nor does it display any error in the console.
Code:
[appDelegate.loadTabController.navigationController pushViewController:newViewController animated:NO];
Request you to please help.

Last edited by sahil4u91; 10-14-2010 at 06:39 AM.
sahil4u91 is offline   Reply With Quote
Old 10-14-2010, 06:14 AM   #2 (permalink)
YQLabs
 
Join Date: Jul 2010
Posts: 105
Dhanunjaya is on a distinguished road
Default

Quote:
Originally Posted by sahil4u91 View Post
Hi,

I've got a tableViewController application with a navigationBar. On the app launch, I check a condition and load different views based on the result of it.

In the newly loaded view, I've retrieved a reference of the appDelegate as..
Code:
LoadAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
In the newly loaded view, which is a table view, I'm able to retrieve the title of the rootviewNavigationBar with the following code.
Code:
appDelegate.loadTabController.navigationItem.title
But when I try to push a viewController, it does not navigate to another view, nor does it display any error in the console.
Code:
[appDelegate.loadTabController.navigationController pushViewController:newViewController animated:NO];
Request you to please help.
in pushviewcontroller method you can give animated as YES, then it will works...

Regards
Dhanu
__________________
Dhanunjaya
www.yqlabs.com
Dhanunjaya is offline   Reply With Quote
Old 10-14-2010, 06:18 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 5
sahil4u91 is on a distinguished road
Default

Quote:
Originally Posted by Dhanunjaya View Post
in pushviewcontroller method you can give animated as YES, then it will works...

Regards
Dhanu
animated:YES/NO is just to provide an animation effect. It is not responsible to push the view into the NavigationController.
sahil4u91 is offline   Reply With Quote
Old 10-26-2010, 08:34 PM   #4 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 11
surgen12 is on a distinguished road
Default same thing is happening to me.

I have used tableView Controller before, it worked.

now it is not working.

I think it maybe because of tab bar viewcontroller.

But I'm not sure.

I placed table view in tabbar viewcontroller.
surgen12 is offline   Reply With Quote
Old 10-26-2010, 10:10 PM   #5 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 651
kapps11 is on a distinguished road
Default

i think just using [self.navigationcontroller pushViewController:viewController]; should work for you, why do you need to go all the way to the app delegate?
kapps11 is offline   Reply With Quote
Old 01-14-2011, 10:32 PM   #6 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 42
fulvio is on a distinguished road
Default

Quote:
Originally Posted by sahil4u91 View Post
Hi,

I've got a tableViewController application with a navigationBar. On the app launch, I check a condition and load different views based on the result of it.

In the newly loaded view, I've retrieved a reference of the appDelegate as..
Code:
LoadAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
In the newly loaded view, which is a table view, I'm able to retrieve the title of the rootviewNavigationBar with the following code.
Code:
appDelegate.loadTabController.navigationItem.title
But when I try to push a viewController by clicking on a cell, it does not navigate to another view, nor does it display any error in the console.
Code:
[appDelegate.loadTabController.navigationController pushViewController:newViewController animated:NO];
Request you to please help.
I am trying to do the same thing within my application. Did you ever figure out how to pushViewController from the AppDelegate?
fulvio is offline   Reply With Quote
Reply

Bookmarks

Tags
uinavigationcontroller

Thread Tools
Display Modes

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 On



» Advertisements
» Online Users: 346
7 members and 339 guests
Desert Diva, dre, hain, HemiMG, lendo, mottdog, oceanlablight
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,895
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:05 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0