public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. TxtPassword.SecureTextEntry = true; TxtPasswordConfirmation.SecureTextEntry = true; userController = new UserController(); userController.UserInserted += UserController_UserRegisted; TxtName.ShouldReturn = (textField) => { TxtName.ResignFirstResponder(); return(true); }; TxtMail.ShouldReturn = (textField) => { TxtMail.ResignFirstResponder(); return(true); }; TxtPassword.ShouldReturn = (textField) => { TxtPassword.ResignFirstResponder(); return(true); }; TxtPasswordConfirmation.ShouldReturn = (textField) => { TxtPasswordConfirmation.ResignFirstResponder(); return(true); }; TxtAddress.ShouldReturn = (textField) => { TxtAddress.ResignFirstResponder(); return(true); }; TxtPhone.ShouldReturn = (textField) => { TxtPhone.ResignFirstResponder(); return(true); }; }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. TxtPassword.SecureTextEntry = true; userController = new UserController(); userController.UserLoggedIn += UserController_UserLoggedIn; TxtPassword.ShouldReturn += TxtPassword_ShouldReturn; TxtMail.ShouldReturn = (textField) => { TxtPassword.BecomeFirstResponder(); return(true); }; TxtPassword.ShouldReturn = (textField) => { TxtPassword.ResignFirstResponder(); return(true); }; }