Post

Replies

Boosts

Views

Activity

UITextField Input character problem
First, I set the keyboard to the simplified Chinese Pinyin 10 key. When I click ABC, the proxy method in UITextField will return emoji, why?     public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { // string is "➋", "➌", "➍", "➎", "➏", "➐", "➑", "➒", "☻"         print(string)         return true     }
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
796
Apr ’22
UITextField Input character problem
First, I set the keyboard to the simplified Chinese Pinyin 10 key. When I click ABC, the proxy method in UITextField will return emoji, why?     public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { // string is "➋", "➌", "➍", "➎", "➏", "➐", "➑", "➒", "☻"         print(string)         return true     }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
796
Activity
Apr ’22
Xcode compilation is unusually slow -- Monterey
I just bought a new m1 pro MBP, and it takes a lot of time to build any project after downloading Xcode from the App Store, such as this https://github.com/devMEremenko/XcodeBenchmark. It takes 30 minutes, and my old intel mac only takes 3 minutes. What should I do? Xcode Version: 13.2.1
Replies
1
Boosts
0
Views
761
Activity
Jan ’22