when we click the text field, the default keyboard or keypad not to be appear instead i need to display the custom keyboard..

Did any one know the answer please post it..

Declared in UIResponder.h

UIInputViewAudioFeedback protocol.

Is this method correct or else there having any simple method to work out?

Custom keyboard in xcode 5

有帮助吗?

解决方案

You need to create a protocol for this for having a custom keypad appearing throughout the app. I have made it few months back and the stuff was working well. My requirement was to create a keyboard for farsi language, because ios does not have farsi in its language settings.

There is no need to make protocol if you want it in just 1 viewcontroller.

Here is my that thread:

customized keypad on the iPhone Application

其他提示

Here's something that I created that might help. Just fork it on GitHub and change the Punjabi characters to Myanmar. Most of the hard work is done for you :)

https://github.com/kulpreetchilana/Custom-iOS-Keyboards

Per your comment you need the Number Pad keyboard.

Set your UITextField keyboardType property, either via Interface Builder or programmatically:

textfield.keyboardType = UIKeyboardTypeNumberPad;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top