lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
246 stars 17 forks source link

26334031: Tap & hold on a link in a UITextView inside a modally presented view controller does not work #14706

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

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:

  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:

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

openradar-mirror commented 8 years ago

Modified: 2016-05-17T23:04:33.684330