Custom keyboard layout in Cocoa Touch?

主宰稳场 提交于 2019-12-24 16:16:21

问题


I am currently working on a BrainFuck interpreter for the iPhone. Seeing as BrainFuck only has eight commands, I want to create a custom nine-button (eight commands + backspace) keypad that will be showed instead of the standard iPhone keyboard. Is there any easy way of doing this?

Thanks, amit ron-


回答1:


As far as I can tell, there's no "officially authorized" way to do this. The thread here is a good discussion of a variety of ways it can be done.

Also, the iPhone SDK agreement specifically forbids interpreters. I don't know how strictly that rule is kept, so be aware that your app may get rejected.




回答2:


There is currently no easy way to do this elegantly, i.e. there are definitely no custom keyboards supported, only the ones supplied by the system. (Shouldn't be too hard to implement your own for nine buttons though).

If you look carefully at some galleries of the new iPad, you can see that Numbers for iPad has a custom keyboard. I think this makes it quite likely that doing something like this will probably become easier once the next iPhone OS is out.



来源:https://stackoverflow.com/questions/2171258/custom-keyboard-layout-in-cocoa-touch

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