Search code examples
iphoneparentviewcontroller

Reload ParentViewController


I have an iPhone application where i'm showing a settings page using modal view

[self presentmodalviewcontroller:tempcontroller animated:yes];

When the user finishes the settings he can come back to the previous page.

[self.dismissmodalviewcontroller animated:YES];

Now i want to reload my main page when user comes back from the settings page. I read some where that i should use @protocol and delegate for that to happen.I have gone through some of the tutorials on the web on this topic. But i'm not been able to do that.I have no knowledge on @protocol and delegate as i'm new to the iPhone development.

Please help me with some good tutorials. It would be greate if you can suggest me any link having step by step description of my need.

Looking forward to your help....

Thanks in advance

Joy


Solution

  • Another easier option would be to use the NSNotificationCenter. Have a look at this

    sending data to previous view in iphone