Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何指定我的UIAlertView文本字段键盘是数字键盘?我设置alertViewStyle为UIAlertViewStylePlainTextInput.
UIAlertView
alertViewStyle
UIAlertViewStylePlainTextInput
我认为您可以执行以下操作:
UITextField* tf = [alertView textFieldAtIndex:0]; tf.keyboardType = UIKeyboardTypeNumberPad;
请参阅UIAlertView和UITextInputTraits文档