Unreliable UITextField delegate method invocation

Number:rdar://9932947 Date Originated:11-Aug-2011 01:02 AM
Status:Open Resolved:
Product:iOS Product Version:<= 5.0
Classification:Serious Bug Reproducible:Always
The delegate method -textField:shouldChangeCharactersInRange:replacementString: is not always called, which makes the delegate method unreliable.

Steps to Reproduce:
- Pick a UITextField with a good chunk of text in it.
- Start removing text by pressing-and-holding Backspace.
- Hold on long enough for the system to go into whole-word-deletion-mode.

Expected Results:
The -textField:shouldChangeCharactersInRange:replacementString: delegate method to be invoked with the NSRange argument indicating the range of the words being removed.

Actual Results:
The -textField:shouldChangeCharactersInRange:replacementString: delegate method is not called at all during this "deletion mode". Just like deleting single characters, inserting text, replacing selections and cutting and pasting, I'd expect the deletion of whole words to inform the delegate about it, too.




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!