问题
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.
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.
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.
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
回答1:
You don't need to create a custom keyboard to use non-English languages. Whatever you've found through random web searches, stop using them and look at the official documentation in the developer library. In particular, Internationalization Programming Topics.
回答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
来源:https://stackoverflow.com/questions/11760429/customized-keypad-on-the-iphone-application