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

View Single Post
Old 04-27-2009, 12:30 PM   #1 (permalink)
vishal
Vishal
 
Join Date: Feb 2009
Location: Pune, India
Posts: 76
vishal is on a distinguished road
Default Navigation controller problem

Hi,

I am using one navigation controller in my application. I am having one main view(with main view controller) and few options views. Options views are viewed by navigation controller when a button clicked on main view's toolbar.

Everything works as expected for first time. When I came back to main view from navigation controller and tries again to go to option view(i.e. navigation controller) my application crashes.

Following is my code,

Code:
//Jump to navigation controller from main view controller

optionsViewController *optionsView = [[optionsViewController alloc] initWithNibName:@"optionsView" bundle:nil];
navControllerSettings = [[UINavigationController alloc] initWithRootViewController:(UIViewController *) optionsView];
[self presentModalViewController:self.navControllerSettings animated:YES];

//Code to go back to main view from navigation controller

[self.navigationController dismissModalViewControllerAnimated:YES];
What is correct mechanism to handle navigation controller? Do I need to release/dealloc the navigation controller or options view?

Sample code will help better.

Vishal N
vishal is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,623
Threads: 94,087
Posts: 402,801
Top Poster: BrianSlick (7,990)
Welcome to our newest member, chanjackie113
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:09 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.