I'm porting the Official Apple Multipeer WiTap sample to Xamarin and C#, however I'm not sure how to port this method within TapViewController.
It contains all the things I'm not sure how to port... namely
- A delegate that is expressed only in code, and has no strong delegate in the Xamarin framework. (this is probably easy, just a concept I'm missing)
- What the heck is the
id
here, and how do I declare/use it? - How do I declare
self.delegate;
code:
- (IBAction)closeButtonAction:(id)sender
{
id <TapViewControllerDelegate> strongDelegate;
#pragma unused(sender)
strongDelegate = self.delegate;
if ([strongDelegate respondsToSelector:@selector(tapViewControllerDidClose:)]) {
[strongDelegate tapViewControllerDidClose:self];
}
}
Here is a link to my code, where the port is in progress