Hi all ,
I want to use custom delegate in my search tab.
I have never used my own custom delegate in any application ( this is the just second one ).
The scenario is as below :
In the search utility ,If I am pressing select category , a modal view controller will be presented in that I am passing a category controller as a parameter .
Now I set its delegate to self .
In the modal view controller , after user selects one of the category and then presses done the done method in the search controller is executed as I have implemented CategoryControllerDelegate .
I have a little idea of all this . But not a full picture .
So tell me how to do all this in code , or If anyone have example ,Please provide the link . EDIT : The question is made a class with custom delegate then set the delegate to self then it should be called on done button tapped in madal view controller .