如何打开手机键盘iOS?

时间:2014-08-14 15:57:25

标签: ios objective-c

如何在我的应用中从iOS打开原生键盘。我尝试使用UITextField

[textField setKeyboardType: UIKeyboardTypePhonePad];

但没有好的解决方案。

1 个答案:

答案 0 :(得分:0)

如果您的意思是如何在没有用户触摸的情况下显示textField的键盘,请尝试

[textField becomeFirstResponder]