Post

Replies

Boosts

Views

Activity

Comment on Unexpected Insertion of U+2004 (Space) When Using UITextView with Pinyin Input on iOS 18
The issue arises because I calculate the position of mentions by predicting the number of characters added. When recalculating the mention positions, I rely on the shouldChangeTextIn range and replacementText to estimate the changes. However, the replacementText only gives me the character “ㄨ”, which leads me to believe that only one character is being added. In reality, it also includes an invisible U+2004, causing the calculation to fail due to an incorrect prediction.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’25
Comment on Unexpected Insertion of U+2004 (Space) When Using UITextView with Pinyin Input on iOS 18
@DTS Engineer I am keyboard settings https://i.imgur.com/avq6ObX.png
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’25
Comment on Unexpected Insertion of U+2004 (Space) When Using UITextView with Pinyin Input on iOS 18
The issue arises because I calculate the position of mentions by predicting the number of characters added. When recalculating the mention positions, I rely on the shouldChangeTextIn range and replacementText to estimate the changes. However, the replacementText only gives me the character “ㄨ”, which leads me to believe that only one character is being added. In reality, it also includes an invisible U+2004, causing the calculation to fail due to an incorrect prediction.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’25
Comment on UIScrollView Incorrectly Scrolls When Selecting Text in UITextView on iOS 15
thanks, my scrollView contains several other views, and their total height exceeds the screen height. Any advice on handling unexpected scrolling in this case?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on UIScrollView Incorrectly Scrolls When Selecting Text in UITextView on iOS 15
The example is quite simple. Actually, there are other views within the ScrollView, and the total height exceeds the screen height, thanks
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’24