我可以着色(黑色)UIKeyboard吗?如果是,如何? [英] Can I tint (black) a UIKeyboard? If so, how?

查看:93
本文介绍了我可以着色(黑色)UIKeyboard吗?如果是,如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有办法获得黑色键盘吗?默认值为蓝色。警报风格一是半透明黑色。我想知道是否可能有键盘黑色,例如。不透明。

Is there a way to get a black keyboard? The default one is bluish. And the Alert style one is semi-transparent black. I was wondering if it was possible to have the keyboard black, e.g. non transparent. Or do I have to pull up a black view behind the keyboard to reduce the transparency effect?

推荐答案

简短的答案是:NO 。您可以显示的唯一两个键盘是正常和警告样式的键盘。

The short answer is, NO. The only two keyboards you can display are the normal and alert style keyboards.

有办法来获取ui键盘和改变它的组成。我不会建议这样做,因为它会1)可能使您的应用程序从应用程序商店被拒绝,2)可能破坏下一次iOS修订版本。

There are ways to hack around, get the ui keyboard and change it's composition. I wouldn't recommend doing this as it will 1) likely make have your app rejected from the app store and 2) likely break the next time an iOS revision comes around.

看起来像黑色或白色视图后面的键盘应该适用于应用程序。在这种情况下,我建议您查看此处的方法以在键盘下方呈现黑色视图。

Seems like putting a black or white view behind the keyboard should work for application. In this case I would recommend looking here for a way to animate that black view up below the keyboard.

这篇关于我可以着色(黑色)UIKeyboard吗?如果是,如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆