node ninja
node ninja

Reputation: 33056

How to change the keyboard type for a text field in Xcode

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

Answers (2)

Nithinbemitk
Nithinbemitk

Reputation: 2740

1) In xib you can change by clicking the Keyboard type like below

enter image description here

2) Programmatically you can set by textField.keyboardType = UIKeyboardTypeNumbersAndPunctuation;

Upvotes: 0

Dave DeLong
Dave DeLong

Reputation: 243156

How about the keyboardType property?

Upvotes: 6

Related Questions