Guest User

Untitled

a guest
May 21st, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. if (KeyboardType == UIKeyboardType.NumberPad)
  2. {
  3. NSNotificationCenter.DefaultCenter.AddObserver (
  4. "UIKeyboardDidShowNotification", (notification) => {
  5. UIButton doneButton = new UIButton(new RectangleF(0, 163, 106, 53));
  6. doneButton.ButtonType = UIButtonType.Custom;
  7. doneButton.SetTitle("Done", UIControlState.Normal);
  8. UIWindow window = UIApplication.SharedApplication.Windows[0];
  9. UIView keyboardView;
  10. foreach(var v in window.Subviews)
  11. {
  12. if (v is UIKit.UIKeyboard)
  13. {
  14.  
  15. }
  16. }
  17. Console.WriteLine ("Keyboard went up");
  18. });
  19.  
  20. }
Add Comment
Please, Sign In to add comment