需要带有特定键的键盘

编程入门 行业动态 更新时间:2024-10-14 10:40:47
本文介绍了需要带有特定键的键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

好的,我看过介绍如何在数字键盘上输入十进制键的网页,但是对于一个按钮来说这非常复杂,而且我遇到的问题涉及多个按钮.看,我有一个程序涉及输入诸如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).

更多推荐

需要带有特定键的键盘

本文发布于:2023-11-12 10:33:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581239.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:键盘

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!