Skip to content

Instantly share code, notes, and snippets.

@nvkiet
Created May 4, 2015 17:27
Show Gist options
  • Save nvkiet/3e800512c2cfadb9685f to your computer and use it in GitHub Desktop.
Save nvkiet/3e800512c2cfadb9685f to your computer and use it in GitHub Desktop.
reloadInputViews
It's worth noting that if you want a currently-focused field to update the keyboard type immediately, there's one extra step:
// textField is set to a UIKeyboardType other than UIKeyboardTypeEmailAddress
[textField setKeyboardType:UIKeyboardTypeEmailAddress];
[textField reloadInputViews];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment