Post

Replies

Boosts

Views

Activity

no didCancel in PHPickerViewControllerDelegate?
There's only a single function under PHPickerViewControllerDelegate which is didFinishPicking according to the documentation. How do I implement dismiss for the Cancel button that comes along when tapping out with PHPickerViewController? Have no problem if continue using UIImagePickerControllerDelegate, as it comes with imagePickerControllerDidCancel . However, if I were to implement with the new PHPickerViewController that currently only have a single function, how to enable proper dismiss right on the click of Cancel button instead of just relying the swipe down to dismiss the screen. Kindly advise. Thanks.
2
0
1.8k
Apr ’22
How to stop auto-capitalization / auto-correct capitalized words to small letters when using Apple pen on textView?
I have specifically mentioned textView.autocapitalizationType = .none but when an input is done with Apple pen, the words entered will be automatically changed to Capital letter for the first word and other middle words which are originally entered as capitalized words being changed to small letters. If using keyboard for text input, no such issue. Even when I change the setting->keyboard, turn off autocapitalization, the words will still be changed to Capital letter for first words and other words all to small letters as long as using Apple pen. How can I programmatically forced the input by Apple pen to be exactly as what user key in ( which word to be in small letters, and which to be capital letters ), instead of autoCapitalized them and auto-turn capitalized words by user to small letters when it is not needed to do so at all. Thanks.
3
1
2.2k
Jul ’22
How to get auto-suggested word based on drawn Chinese character or stroke info in the form of an array of CGPoint?
I have an array consists of the CGPoint representing the chinese character stroke paths and able to re-draw out the character on UIView. I would like to use this existing information to find out the most similar chinese word. I notice the chinese keyboard hand-writing pad can display the suggested words. However, I have no idea which functions in the documentation that get this to work ( pass the stroke info as CGPoint, and get back suggested Chinese words). What API calls can I use to get the suggested words?
0
0
1.6k
Aug ’22