Custom implementation of UITextInput does not show multistage input suggestions

I have my own based text editor UITextInput. It works very well, with the exception of multi-step input through selected text.

My marked area is displayed correctly, and the marked text is inserted, but the list of candidates above the keyboard is empty.

For example, here is a Japanese (Kana) keyboard showing suggestions for the UITextView standard:

Default Marked Text

And here is my custom editor displaying the same selected text:

enter image description here

I spent a few days debugging this problem and found that the cause is a private class UIKeyboardImplreturning NOfor a methoddelegateSupportsCorrectionUI

UIKeyboardImpl YES , . ( ).

Apple SimpleTextInput. . SimpleTextInput , UITextInput, , .

( , "" SimpleTextInput . , UITextInput - . .)

+4
1

, . :

@property(nonatomic, readonly) UIView *textInputView

, . ( UITextInput.) , .

.

@synthesize 'd , UITextInput nil textInputView. , , , .

. .

+3

All Articles