I have two view Controllers in my project ViewController
, SettingsView
. Here I am trying to update the ViewController\'s
label, when i
Your label is not updating because , you are trying to call updateLabel
method with a new instance.
You should call updateLabel
of the original instance of viewcontroller from which you have presented your modal view.
you can use a delegate mechansim or NSNotification to do the same.
Delegate mechnaism would be clean. NSNotification is quick and dirty.