Programmatically changing keyboard type on iOS does nothing Programmatically changing keyboard type on iOS does nothing ios ios

Programmatically changing keyboard type on iOS does nothing


Try this:

-(BOOL)textFieldShouldReturn:(UITextField *)textField{    [textField setKeyboardType:UIKeyboardTypeNumbersAndPunctuation];    [textField reloadInputViews];    return YES;}


You can do this in the Text Input Traits section under the Attributes inspector.