tags:

views:

97

answers:

1

hello everyone

I have a project inwhich the root controller call multi viewcontrollers. What is the even what's the event does the root viewcontroller get when a viewcontroller unload?

Do I need to construct even by myself?

Best Regards

interdev

A: 

You can probably use viewwilldisappear to achieve what you are going for

Cirrostratus
when the viewcontroller exit, it will change a parameter.how to notify the root controller the modifcation of the value and do relevant operation?
You should be introducing that view as a modalviewcontroller with the delegate of that view being the rootviewcontroller. When the parameter is changed in the modalviewcontroller it should call a method in the delegate (in this case your rootviewcontroller) like this: [self.parentViewController doSomething];
Cirrostratus