Forum Xamarin.iOS

Example of master-detail communication with storyboard?

JamesLaveryJamesLavery GBBeta, University ✭✭✭✭✭

Hi all,
I've got a master controller and a detail controller on which a detail item is edited. I need to pass the edited data back to the master when the Done button is clicked.

I know that I need to use Objective-C protocols and delegates, and have read up the general Xamarin documentation on how they work with built-in iOS classes.

However, I can't see how to hook up a custom protocol and delegate etc. in Xamarin.iOS - can someone point me in the right direction please?

Thanks,

James

Posts

  • JamesLaveryJamesLavery GBBeta, University ✭✭✭✭✭

    Xamarin support (Prashant) have given me the answer - as usual, obvious when you know (or UTFM - similar to RTFM but 'Understand').

    Using the callback reference in PrepareForSegue allows for a callback function to be passed to the detail controller, which can be used to send the data back to the master.

Sign In or Register to comment.