I am using x-codes Master-detail template. I have a button in the detailView that has its action also in the detailViewController. Within this action method i need to call a method that is in the masterViewController. How can I do this ?
I am using x-codes Master-detail template. I have a button in the detailView that
Share
you need to get the reference of the masterViewController. use the delegate pattern.
Init your detailViewController with this type of function :
with protocol :
and had in your .h of detailViewController
with protocol :
then in the .m of detail :
then in your function
Good luck ^^ !