I modify the ios code, now it can support chinese input(maybe other asia text input )
- (void) textViewDidChange : (UITextView*) textView
{
if(textView.markedTextRange == nil) {
owner->textViewReplaceCharacters (Range<int> (0, 1), nsStringToJuce (textView.text));
textView.text = nullptr;
}
}
- (BOOL) textView: (UITextView*) textView shouldChangeTextInRange: (NSRange) range replacementText: (NSString*) text
{
(void) textView;
if(text == nullptr || text.length == 0) {
owner->textViewReplaceCharacters (Range<int> (0, 1), nsStringToJuce (text));
textView.text = nullptr;
return NO;
}
return YES;
}