I am currently in the process of switching from Android to the iPhone SDK. I have a TableView where the user selects an item. I am having trouble passing data between controllers. Is there an equivalent to the Android’s startActivityForResult or putting extra’s into Intents? Like so …
Intent i = new Intent(this, Foo.class);
i.putExtra("Foo", foo);
Take this in .h file in ParentViewController
Make below function in ParentViewController
Now In Post view controller do like this:
Now, In secondViewController viewWillAppear Method write this.
Please check spelling mistakes as I hand written this. Hope this help.
If you are not using navigationContoller then you can do something like this.