问题描述
我想为键盘布局而不是普通布局创建自定义GUI。我怎样才能做到这一点?
I want to create custom GUI for keyboard layout instead of normal layout. How can I achieve this?
任何人都可以帮助我吗?
Can anyone help me ?
是否有任何内置样式/布局可用或我是否需要创建相同的视图?
Is there any built-in style/layout available or do I need to create a view for same?
谢谢,
Jayesh
Thanks,Jayesh
推荐答案
使用UITextField或UITextView的inputView属性。只需为其指定自己的自定义视图即可。然后,当接收器成为第一响应者时,系统将自动将您的自定义视图显示为键盘。当辞职的第一响应者时,它也会隐藏它。
You use the inputView property of a UITextField or UITextView. Simply assign it a custom view of your own. Then, when the receiver becomes the first responder, the system will automatically show your custom view as the keyboard. It will also hide it, when resigning first responder.
据我所知,没有模板。
As far as I know, there are no templates.
这篇关于iPad自定义键盘GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!