I am trying to convert the following iOS code into MonoTouch and cannot figure out the proper conversion for the @selector(removebar) code. Can anyone provide guidance about the best way to handle @selector (since I've come across that in other places as well):
- (void)keyboardWillShow:(NSNotification *)note {
[self performSelector:@selector(removeBar) withObject:nil afterDelay:0];
}
My C# code is:
NSNotificationCenter.DefaultCenter.AddObserver(UIKeyboard.WillShowNotification,
notify => this.PerformSelector(...stuck...);
I am basically trying to hide the Prev/Next buttons that show on the keyboard.
Thanks in advance for any help.
where
removeBar
is a method defined elsewhere.Or, if you prefer using a lambda: