UITextViewDelegate behaviour when backspace key is held Down

Originator:JoseJoaoJunior.JJ
Number:rdar://14512460 Date Originated:22-Jul-2013 04:51 PM
Status:Open Resolved:
Product:iPad SDK Product Version:6.1
Classification:Serious Bug Reproducible:YES
 
Summary:
Inconsistency from what the "textView:shouldChangeTextInRange:replacementText:" sends and what is in the "textView.text"  when the change is applied when the backspace key is held down and deletes a break line. 

Steps to Reproduce:
Create a UITextView and set the text to be like "some thing.\nMake the text long enough to execute a word deletion".
Put some logs at "textView:shouldChangeTextInRange:replacementText:" to monitoring the "textView.text" and the "range".
Run the app and change the cursor position to the end.
Hold backspace.

Expected Results:
The NSRange passed should always reflect the change applied at UITextView's text.

Actual Results:
The NSRange passed do not reflect the change applied at UITextView's text.

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!