Swift adding custom keyboard or numpad in app

女生的网名这么多〃 提交于 2019-12-22 06:36:09

问题


What types of restrictions is there when adding a custom keyboard or numpad in an app?

I know that some apps requires you to enable keyboards in your system settings.

I recently saw an app using this keyboard:

The app does not require you to activate the keyboard. So how can I make my own custom numpad like this one?

Feel free to share any tutorials/libraries

thanks,


回答1:


There's a great swift keyboard/calculator tutorial out there that will serve as a starting point for what you're doing: http://code.tutsplus.com/tutorials/ios-8-creating-a-custom-keyboard-in-swift--cms-22344

In terms of "restrictions", you can add the keyboard to the parent app without any problems. If you want to make your keyboard available in OTHER apps, then you will need to adhere to the restrictions that Apple lays out on this page: https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/Keyboard.html - search for "trust"

Swift and Xcode are both moving targets that are updated more often than a project can be completed! So be ready to deal with constant updates as you go through the learning curve. Sometimes the time it takes for a client to approve something is enough time for the Swift/xCode/iOS paradigm to change enough to require you to "fix" things that already worked before submitting for approval. Just row row gently down the stream.



来源:https://stackoverflow.com/questions/32511973/swift-adding-custom-keyboard-or-numpad-in-app

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