UIWebView can not handle long press on link

Originator:an00na
Number:rdar://22896862 Date Originated:29-Sep-2015 10:24 AM
Status:Open Resolved:
Product:iOS SDK Product Version:9.0
Classification:Other Bug Reproducible:Always
 
Summary:
UIWebView doesn’t show action sheet for long press on link. It spews this warning:
Attempt to present <UIWebRotatingAlertController: 0x7fc14482b400> on <UIWebViewAlertBug.ViewController: 0x7fc1434a1e70> whose view is not in the window hierarchy!

Steps to Reproduce:
1. Launch sample app.
2. Open Web.
3. Long press on a link.

Regression:
iOS 8 doesn’t have this issue.

Sample code:
http://cl.ly/11240p1i0B1q

Comments

This bug is half-fixed in iOS 10 beta 1

  1. Long press on text links works.
  2. But long press on image links not: try long pressing on the 3 icons of Twitter, Github and Weibo at the top of the page.

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!