Reputation: 33056
I created a text field in XCode, not Interface Builder. In IB you can select different keyboard types. How can you do the same thing in XCode?
Upvotes: 3
Views: 6636
Reputation: 2740
1) In xib you can change by clicking the Keyboard type like below
2) Programmatically you can set by textField.keyboardType = UIKeyboardTypeNumbersAndPunctuation;
Upvotes: 0