Is there a way to modify or make your own iPhone keyboard so that you can type in unsupported languages?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create your own keyboard, but actually using it is more difficult.
To create it:
inputViewproperty. For UITextView and UITextField, this is as simple as assigning the property; for other classes, you will probably have to subclass or swizzle the accessors as the property is declared read-only by default.More details on this are available in the documentation.
Unfortunately, actually using this custom keyboard is more difficult. As of iOS 4.3, neither UITextField nor UITextView conform to the
UITextInputprotocol, which would be ideal for this purpose. For UITextView you should be able to make it work using the methods provided by the class, but since UITextField doesn’t give any way to find the current selection or cursor position you won’t be able to create a fully-functional keyboard using publicly-documented methods (append and delete-from-end are possible, and even inserting at the current position by manipulating the clipboard, but a “delete previous character” button like that on the standard keyboard will prove impossible).As of iOS 5.0, UITextField and UITextView finally do implement the UITextInput protocol. It should now be a simple matter to insert and delete text at the cursor position.