Tap & hold on a link in a UITextView inside a modally presented view controller does not work
Originator: | avedesk | ||
Number: | rdar://26334031 | Date Originated: | 18-May-2016 01:03 AM |
Status: | Resolved | Resolved: | iOS 10.2.1 |
Product: | iOS SDK | Product Version: | iOS 9.3.2 |
Classification: | Other Bug | Reproducible: | Always |
Summary: When having a UITextView inside a modally presented view controller, tap & hold does not work on a link in a UITextView. The problem is caused by UITextView always wanting to present the AlertController it wants to show on the root view controller, which is already presenting a view controller, so it fails. It would be appropriate for the UITextView to present the alert controller on the containing view controller instead. Steps to Reproduce: 1. modally present a view controller with a textview with an embedded link 2. tap & hold on the link Expected Results: 1. a popup menu for the link shows up Actual Results: 1. A log warning: Warning: Attempt to present <_UIRotatingAlertController: 0x7fa34a55c800> on <UIViewController: 0x7fa34975ff60> whose view is not in the window hierarchy! 2. no action sheet Regression: Has been there since at least iOS 8. 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!
Fixed
This seems to have been fixed in iOS 10.2.1