Skip to content

Instantly share code, notes, and snippets.

@sjehutch
Created November 25, 2017 00:55
Show Gist options
  • Save sjehutch/c3d821914704c355603f33146c1eca77 to your computer and use it in GitHub Desktop.
Save sjehutch/c3d821914704c355603f33146c1eca77 to your computer and use it in GitHub Desktop.
resign keyboard xamarin IOS
public override void TouchesBegan(NSSet touches, UIEvent evt)
{
txtUserName.ResignFirstResponder();
}
//Dismiss Keyboard After hitting return
txtPassword.ShouldReturn = (sender) =>
{
sender.ResignFirstResponder();
return false;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment