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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 05-03-2009, 01:55 PM   #1 (permalink)
Vishal
 
Join Date: Feb 2009
Location: Pune, India
Posts: 76
Default Navigation controller

Hi,

I am new to iPhone development and need some help.

I have a main view and a toolbar with button on it. when that button gets clicked a UINavigationController get initiated with few options. When user done with options settings this navigation controller get out from the screen and main view displays again. I am using following statement to remove navigation controller.

Code:
[self.navigationController dismissModalViewControllerAnimated:YES];
I want to take some action on this options set by user so main view controller needs to know when navigation controller finished.

Is there any way to notify or reinitiate the main view?

Vishal N
vishal is offline   Reply With Quote
Old 05-03-2009, 04:39 PM   #2 (permalink)
Pixel
 
mralex's Avatar
 
Join Date: Apr 2009
Location: SF
Posts: 14
Default

Implement either of the following delegate methods in your main view controller:

Code:
- (void)viewWillAppear:(BOOL)animated;
Will be sent to the parent view controller when the modal view controller is dismissed, but before its animation starts.

Code:
- (void)viewDidAppear:(BOOL)animated;
This message will be sent to the parent view controller when your modal view has finished animating.
mralex is offline   Reply With Quote
Old 05-04-2009, 11:38 AM   #3 (permalink)
Vishal
 
Join Date: Feb 2009
Location: Pune, India
Posts: 76
Default

Quote:
Originally Posted by mralex View Post
Implement either of the following delegate methods in your main view controller:

Code:
- (void)viewWillAppear:(BOOL)animated;
Will be sent to the parent view controller when the modal view controller is dismissed, but before its animation starts.

Code:
- (void)viewDidAppear:(BOOL)animated;
This message will be sent to the parent view controller when your modal view has finished animating.
Thanks,

This works for me.
vishal is offline   Reply With Quote
Reply

Bookmarks

Tags
navigation controller

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: 261
21 members and 240 guests
ADY, Alsahir, Dani77, e2applets, iph_s, JasonR, keeshux, mer10, Monstertaco, piesia, prchn4christ, Promo Dispenser, Robiwan, Rudy, sebasx, sly24, timle8n1, Touchmint, twerner
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,759
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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