In my view, I have a textfield setup to display the Phone Keyboard, but it just shows the standard keyboard instead. Here’s my code…
contactPhoneTextField = [[UITextField alloc] initWithFrame:frameText];
contactPhoneTextField.borderStyle = UITextBorderStyleNone;
contactPhoneTextField.textColor = [UIColor blackColor];
contactPhoneTextField.font = [UIFont systemFontOfSize:17.0];
contactPhoneTextField.placeholder = @"Tap To Enter Contact Phone Number";
contactPhoneTextField.backgroundColor = [UIColor clearColor];
contactPhoneTextField.autocorrectionType = UITextAutocorrectionTypeNo;
contactPhoneTextField.keyboardType = UIKeyboardTypePhonePad; //<<<----
contactPhoneTextField.returnKeyType = UIReturnKeyDone;
contactPhoneTextField.clearButtonMode = UITextFieldViewModeWhileEditing;
contactPhoneTextField.delegate = self;
What gives?
Thanks so much in advance for your wisdom!
Looks like you’re using an iPad? There is no phone pad available on this device … So the displayed keyboard layout with numbers is correct.