iPhone应用程序上的自定义键盘 [英] customized keypad on the iPhone Application

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

问题描述

我要求创建除英语以外的其他语言的应用程序。我通过互联网进行了研究,发现必须为此创建自己的iphone键盘。

i have requirement of creating a applicartion will different language other than English. I research over then internet and found i would have to create my own iphone keypad for this.

我发现这篇文章非常有用。我试图制作一个自定义键盘,但没有成功。该应用程序崩溃为自定义键盘上的按钮。该按钮找不到其 TouchUpInside 事件并崩溃。

I found this post very useful. I tried to make a custom keyboard but could not succeded. The application crashed as a press button of the custom keyboard. The button could not found its TouchUpInside event and crashes.

我知道我错过了一些东西,而且我非常接近为此。这是我使用XIB制作的示例应用程序。请任何人拉并安装此示例应用程序,让我知道我在做什么错误。我将更新代码,然后再向其他用户推送。

I know i am missing something and i am very close to this. Here is a sample application i made with XIB. Please anyone pull and install this sample app and let me know what is the mistake i am doing. I will update the code and will push again for others.

感谢您的答复。它的3个版本将以3种不同的语言发布。由于版本不同,因此不会切换语言。阿拉伯语版本仅显示阿拉伯语键盘,法语版本仅显示法语键盘,波斯语版本仅显示波斯语键盘。在上面的应用程序中,我制作了一个UIView,其行为类似于 [textview成为FirstResponder]; 上的键盘,然后我将阿拉伯键盘图像作为UIImageView作为其子视图,将在其中放置许多按钮,并将这些按钮的标签分配为ASCII值,然后跟踪pn按钮单击

Thanx for the reply. Its 3 version will be released with 3 different languages. There is no switching of the languages because versions are different. Arabic version will show arebic keyboard only, French version will show french keyboard only and Farsi version will show farsi keyboard only. In my application above i have made a UIView that behaves like a keyboard on [textview becomeFirstResponder]; After then i put a arabic keypad image as UIImageView as a subview to it, I will put many buttons to it and will assign tags of these buttons to ASCII values and will track then pn buttpon click

推荐答案

在这里选择我使用xib制作的示例应用程序。
我创建了一个适用于2个不同视图控制器文本字段的协议。

Here you go for a sample app I made using xib. I created a protocol that works for 2 different view controllers textfields.

https://github.com/vikysaran/Application

这篇关于iPhone应用程序上的自定义键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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