How i can make a viewcontroller a delegate of another viewcontroller?
===

I have a viewcontroller in my IPhone application.For some animation i make a view like rootview with in that and added all the elements in that.When clicking on a button i removed that rootview and added another view controllers view.The problem is i was only loaded the view.Iwant to execute a function with in the new view controller.For that i need to set the first view controller as a delegate of the second view controller?can anybody help me ?