需要带有特定键的键盘 [英] Need a keyboard with specific keys

查看:53
本文介绍了需要带有特定键的键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我看过介绍如何在数字键盘上输入十进制键的网页,但是对于一个按钮来说这非常复杂,而且我遇到的问题涉及多个按钮.看,我有一个程序涉及输入诸如x + 5"之类的函数.我现在的问题是用户必须通过三个不同的键盘才能输入那种功能.我需要知道是否可以设置一个带有特定键的键盘.有没有比十进制键方法更简单的方法?

Okay, I've seen the webpage that shows you how to enter a decimal key on the number pad, but that's pretty complicated for one button, and the problem I have involves multiple buttons. See, I have a program that involves typing in functions like "x + 5". My problem right now is that the user has to go through three different keyboards just to enter that kind of function. I need to know if it's possible to set up a keyboard that will have specific keys in it. Is there a way to do this that's simpler than the decimal key method?

推荐答案

如果没有任何苹果键盘让你长笛,你就必须创建一个自定义键盘.

You'll have to create a custom keyboard if none of the apple keyboards toots your flute.

最简单的方法是创建一个视图并添加许多带有自己的标题和背景图像以及最重要的操作的按钮.您还需要一个代表.

The easiest way to do this is to create a view and add lots of buttons with their own titles and background images and, most importantly, actions. You'll also need a delegate.

更正式地说,有许多在线教程(以及很多 SO 问题).

To be more official, there are numerous online tutorials (and lots of SO questions).

这篇关于需要带有特定键的键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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