lionheart / openradar-mirror

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

32136365: UITextView phone number detection does not work with certain characters before phone number #17397

Open openradar-mirror opened 7 years ago

openradar-mirror commented 7 years ago

Description

Area: UIKit

Summary: Using a UITextView with data detectors set to phone number and editable set to false, the phone number is not detected with certain character combinations before the phone number.

Examples:

Doesn't work: "confirmation, call 555-666-7777" Doesn't work: "confirmation call 555-666-7777" Works: "confirmation. call 555-666-7777" Works: "confirmations, call 555-666-7777"

Steps to Reproduce:

  1. Use a UITextView that has data detectors set to phone numbers and editable set to false.
  2. The text in the text view is set to "confirmation, call 555-666-7777"
  3. Run the app.

Expected Results: The phone number should be a selectable link regardless of the words/characters before the phone number.

Actual Results: The phone number does not show up as a selectable link.

Version: iOS 10.3.1

Notes:

Configuration: iPhone 6s, iOS 10.3.1, Xcode 8.3.2

- Product Version: iOS 10.3.1 Created: 2017-05-12T17:06:20.892530 Originated: 2017-05-11T10:54:00 Open Radar Link: http://www.openradar.me/32136365

ttmdung203 commented 5 years ago

Hi, how did you resolve it? I have the same issue :( It's so strange.

jcbriones commented 2 years ago

Getting the same error. Still not fixed for UIKit framework.