In iOS 7, I could change the keyboard type while it is the firstResponder
(on the fly):
if (textField.text.length > 2) {
textField.keyboardT
I found the same issue. It is better to check whether the textField is already the firstResponder or not.
[textField reloadInputViews]; // does not work on iOS8 !
if ([textField isFirstResponder]) {
[textField resignFirstResponder];
[textField becomeFirstResponder];
}
Not a clean way though, but it works.
I found that this works when the textfield is first responder:
[self.textField reloadInputViews];
[self.textField setText:@" "];
[self.textField setText:@""];