How can I detect short phone numbers in iPhone web views?

Posted by Pedro on Stack Overflow See other posts from Stack Overflow or by Pedro
Published on 2010-05-29T05:52:02Z Indexed on 2010/05/29 6:02 UTC
Read the original article Hit count: 396

G'day All

Most Australian phone numbers are 10 digits with the 1st 2 optional if they're a local area code. For those setting...

viewer.dataDetectorTypes = UIDataDetectorTypePhoneNumber;

on a web view works. We also have a range of 6 digit phone numbers (usually written xxx xxx or xx xxxx) which aren't being detected in my app. Is there a way to detect those phone numbers as well?

Cheers & TIA, Pedro :)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiwebview