Swift: How can I change the color of keyboard background and lettering?

大憨熊 提交于 2019-12-24 18:05:15

问题


I am building a project for iOS8 in swift. The default and dark options for keyboard in xcode do not go with the color theme for my app design.

Is there a simple way for to change the colors in the keybaord?


回答1:


The short answer is no you can't change the look and feel of the system keyboard. Even if you did many people don't even use the default keyboards.




回答2:


With iOS 8 apple introduced custom keyboard extension.

A custom keyboard replaces the system keyboard for users who want capabilities such as a novel text input method or the ability to enter text in a language not otherwise supported in iOS. The essential function of a custom keyboard is simple: Respond to taps, gestures, or other input events and provide text, in the form of an unattributed NSString object, at the text insertion point of the current text input object.

And here's some useful tutorials about how to create custom keyboard :

  • http://www.appdesignvault.com/ios-8-custom-keyboard-extension/
  • https://www.weheartswift.com/make-custom-keyboard-ios-8-using-swift/


来源:https://stackoverflow.com/questions/30222040/swift-how-can-i-change-the-color-of-keyboard-background-and-lettering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!