Adding inputAccessoryView to readonly UITextView causes UIKeyboardWillShowNotification

Originator:plu
Number:rdar://16875796 Date Originated:10-May-2014 10:11 AM
Status:Open Resolved:
Product:iOS Product Version:7.1.x
Classification:Other Bug Reproducible:Always
 
Description:
--
When you configure a UITextView as textView.editable = NO, you do not receive a UIKeyboardWillShowNotification when long tapping the textView for copy & pasting. But if you also set a inputAccessoryView on the readonly textView, the UIKeyboardWillShowNotification is fired whenever you long tap the textView.

Steps to reproduce:
--
I have created a sample project to reproduce this behaviour. You just need to long tap the UITextView. The sample code is available here: https://github.com/plu/TextViewKeyboardTest

You can also exchange the UIKeyboardWillShowNotification with UIKeyboardDidShowNotification.

Expected Results:
--
I'd expect the UIKeyboardWillShowNotification not to fire if the keyboard will not show up at all. Especially I do not expect the UIKeyboardDidShowNotification to fire if there's not keyboard visible at all.

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!