UITextViewDelegate not called when using dictation

Originator:tobias.banaszak
Number:rdar://19324418 Date Originated:22-Dec-2014
Status:Duplicate of 19594765 (Open) Resolved:
Product::iOS SDK Product Version:8.1
Classification:Bug Reproducible:Always
 
Duplicate of 19594765 (Open) (marked as duplicate at 19-Feb-2015 00:23 AM)

Summary:
We implemented a custom UITextView including all UITextViewDelegate-methods.
We encountered, that textView:shouldChangeTextInRange:replacementText: is not called when using the Siris dictation-feature.

Steps to Reproduce:
Create a custom class subclassing UITextView, implementing UITextViewDelegate
Implement the delegate method textView:shouldChangeTextInRange:replacementText (just call super in implementation).
Test your implementation by running the app and typing something into given TextView. textView:shouldChangeTextInRange:replacementText should get called and insert the typed text.
Activate Siri dictation via the microphone-key on the keyboard. Say something.

Expected Results:
All delegates of the textview should be called the same way compared to text-input. textView:shouldChangeTextInRange:replacementText should be called with the detected text.


Actual Results:
textViewDidChange is the only method that got called. textView:shouldChangeTextInRange:replacementText is never called by Siri dictation.

Version:
8.1

Notes:


Configuration:
iPhone 6, iPhone 5, iPhone 5s

Attachments:

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!