public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. this.View.BackgroundColor = UIColor.White; // Create and configure the keyboard. MMNumberKeyboard keyboard = new MMNumberKeyboard(CGRect.Empty); keyboard.allowsDecimalPoint = true; keyboard.Delegate = this; // Configure an example UITextField. UITextField textField = new UITextField(CGRect.Empty); // textField.InputView = keyboard; textField.Text = "123456789"; textField.Placeholder = "Type something..."; // textField.Font = UIFont systemFontOfSize:24.0f]; textField.VerticalAlignment = UIControlContentVerticalAlignment.Top; this.textField = textField; this.View.AddSubview(textField); }
public override void ViewDidLoad () { base.ViewDidLoad (); // Perform any additional setup after loading the view, typically from a nib. this.View.BackgroundColor = UIColor.White; // Create and configure the keyboard. MMNumberKeyboard keyboard = new MMNumberKeyboard(CGRect.Empty); keyboard.allowsDecimalPoint = true; keyboard.Delegate = this; // Configure an example UITextField. UITextField textField = new UITextField(CGRect.Empty); // textField.InputView = keyboard; textField.Text = "123456789"; textField.Placeholder = "Type something..."; // textField.Font = UIFont systemFontOfSize:24.0f]; textField.VerticalAlignment = UIControlContentVerticalAlignment.Top; this.textField = textField; this.View.AddSubview(textField); }