1

I am working on an app for iOS Platform. i have a Input Field available in the new UI System , but every time the White Classic keyboard comes out to take input. I want to display the keyboard with a black semi-transparent background. Can anyone help me out with this?

I tried TouchScreenKeyboard.Open("", TouchScreenKeyboardType.Default, false, false, true, true); T his opens the black semi-transparent background keyboard but when i hit the input field again then the classic white keyboard comes.

I want the black semi-transparent background keyboard as my default keyboard.

Thank You for helping.

4

1 回答 1

0

最后我得到了我自己问题的答案。

在 Xcode 中打开您的项目。打开类文件夹。在其中打开 UI 文件夹。在其中打开文件 Keyboard.mm

类>UI 文件夹>Keyboard.mm

【我们可以看到UIKeyboardAppearance选择】 http://i.stack.imgur.com/yKr7n.png

在这里我们可以看到两种类型的键盘

1.UIKeyboardAppearanceDefault

2.UIKeyboardAppearanceAlert

下面有一行决定应该出现哪种类型的键盘

键盘外观[警告?1:0],

只需根据您的方便更改键盘外观的顺序

这是一个便宜的解决方案。实际上,您应该从调用此方法的任何位置更改警报 bool 的值

[参见 UnityKeyboard_Show 方法]

http://i.stack.imgur.com/kJNL6.png

于 2015-06-15T09:33:50.273 回答