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:
modally present a view controller with a textview with an embedded link
tap & hold on the link
Expected Results:
a popup menu for the link shows up
Actual Results:
A log warning: Warning: Attempt to present <_UIRotatingAlertController: 0x7fa34a55c800> on <UIViewController: 0x7fa34975ff60> whose view is not in the window hierarchy!
Description
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:
Expected Results:
Actual Results:
Regression: Has been there since at least iOS 8.
Notes:
Product Version: iOS 9.3.2 Created: 2016-05-17T23:04:33.684160 Originated: 2016-05-18T01:03:00 Open Radar Link: http://www.openradar.me/26334031