2010-02-21 4 views

risposta

17

È necessario impostare la proprietà keyboardType-UIKeyboardTypeNumberPad.

9
textField.keyboardType = UIKeyboardTypeNumberPad; 
3

Si può anche facilmente fare questo nel file XIB

enter image description here

2

Swift:

textField.keyboardType = .numberPad 
Problemi correlati