質問

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