Post

Replies

Boosts

Views

Activity

Reply to Unexpected Insertion of U+2004 (Space) When Using UITextView with Pinyin Input on iOS 18
@DTS Engineer Thank you for your response and clarification. My intention is to predict the text that will be added, but it seems that I cannot achieve this within shouldChangeTextIn at the moment. I also looked into markedTextRange, but it doesn’t seem to work for my purpose as it cannot calculate the text that is about to be added to the screen. Additionally, I was wondering if the replacementText in shouldChangeTextIn is supposed to include characters like U+2006 or U+2004.. I appreciate your assistance and time in helping me with this. Thank you again!
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’25