Obj-C : Passing parameters back from a detailViewController in a navigation controller

Posted by Garfield81 on Stack Overflow See other posts from Stack Overflow or by Garfield81
Published on 2010-06-12T00:41:12Z Indexed on 2010/06/12 0:42 UTC
Read the original article Hit count: 386

Hi I am using a navigation Controller on an iPhone app. I am able to pass data forward when I push a controller into the navigation stack but how do I pass data back when I pop the controller.

What I am basically trying to achieve is the root navigation controller view displays a number of fields that can be edited. A user then clicks on one of the fields to be edited and a EditViewController is pushed onto the stack with the name of the field the user wants to edit. Now the users enters the new value of the field and presses save to pop the view controller. So how do I get the value from the editViewController back to the root navigation controller view?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c