What is the a way for the modal controller to talk to the presenting controller.
In my case i m presenting modalviewcontroller without using delegate. But want to dismiss modalviewcontroller using delegate protocol.
SO can i dismiss modalviewcontroller using delegate protocol where i m presenting modalviewcontroller without using delegate.
The modal controller can dismiss itself. Within the modal view controller, use
[self dismissModalViewController animated:YES](or NO if you don’t want to animate it). If you include that line of code in the modal controller, then you should be okay!via iOS Documentation
You can also access the parent view controller through
[self.parentViewController ...]