Returning NO from textField:shouldChangeCharactersInRange:replacementString: is ignored when the keyboard is chinese handwriting
| Originator: | raise.rescue | ||
| Number: | rdar://25167901 | Date Originated: | 15-Mar-2016 05:10 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 9.3b6 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Returning NO from textField:shouldChangeCharactersInRange:replacementString: is ignored when the keyboard is chinese handwriting. Steps to Reproduce: 1. Open the attached project 2. Execute it on an iPad 4. Tap the textfield 5. Change the keyboard to “Chinese (Simplified) - Handwriting” 6. Have fun drawing some things on the keyboard 7. You will see that symbols are inserted into the textfield 8. Close the keyboard 9. iOS calls the textField:shouldChangeCharactersInRange:replacementString:-delegate-method, which returns NO, but the symbols are still inside the textfield Expected Results: The symbols should have been removed by iOS, as the textField:shouldChangeCharactersInRange:replacementString: clearly said NO Actual Results: The symbols stay inside the textfield Regression: - Notes: -
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!