可以在不使用UITextField和UITextView iphone应用程序的情况下显示键盘吗? [英] It is possible to show keyboard without using UITextField and UITextView iphone app?
问题描述
我正在使用基于iPhone消息传递的应用程序。
I am working in iPhone messaging based app.
我想用键盘显示键盘 inputAccessoryView
而不使用 UITextView
和 UITextField
。有可能这样做吗?请任何人帮我这个。
I want to show keyboard with keyboard inputAccessoryView
in keyboard without using UITextView
and UITextField
. It is possible to do this? Please any one help me on this.
提前致谢。期待你的帮助。谢谢。
Thanks in advance. Looking forward your help. Thanks.
编辑:
因为我不想要 UITextField
/ UITextView
并且控件位于 UITextView
/ 的UITextField
。我要在键盘上添加 inputAccessoryView
是 UITextView
。当用户触摸键盘 inputView
中的 UITextview
时,实际过程将继续。
Because i don't want the UITextField
/UITextView
and the control to be in UITextView
/UITextField
. I am going to add inputAccessoryView
on the keyboard is UITextView
. when the user touches the UITextview
in the keyboard inputView
the actual process will be continue.
推荐答案
对于想要在没有 UITextField的情况下显示键盘的人
/ UITextView
由于某些原因,可以轻松扩展一些视图,这需要通过实现 UIKeyInput
协议和 canBecomeFirstResponder $ c $来输入文本c>方法。
For anyone, who wants to show keyboard without UITextField
/UITextView
for some reasons, could easily extend some view, which requires text input by implementing UIKeyInput
protocol and canBecomeFirstResponder
method.
这篇关于可以在不使用UITextField和UITextView iphone应用程序的情况下显示键盘吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!