Skip to content

Instantly share code, notes, and snippets.

@martinbowling
Created March 26, 2010 21:41
Show Gist options
  • Save martinbowling/345431 to your computer and use it in GitHub Desktop.
Save martinbowling/345431 to your computer and use it in GitHub Desktop.
if (KeyboardType == UIKeyboardType.NumberPad)
{
NSNotificationCenter.DefaultCenter.AddObserver (
"UIKeyboardDidShowNotification", (notification) => {
UIButton doneButton = new UIButton(new RectangleF(0, 163, 106, 53));
doneButton.ButtonType = UIButtonType.Custom;
doneButton.SetTitle("Done", UIControlState.Normal);
UIWindow window = UIApplication.SharedApplication.Windows[0];
UIView keyboardView;
foreach(var v in window.Subviews)
{
if (v is UIKit.UIKeyboard)
{
}
}
Console.WriteLine ("Keyboard went up");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment