开发者

iPhone webkit dialer not working

开发者 https://www.devze.com 2023-01-02 03:25 出处:网络
I\'ve a simple dialer like this <a class=\"call\" href=\"tel:18000000000\">1 (800) 800-0000</a&开发者_JAVA百科gt;

I've a simple dialer like this

<a class="call" href="tel:18000000000">1 (800) 800-0000</a&开发者_JAVA百科gt;

It's not doing the call out.

Do I need to set anything before that will work?

Thanks,

Tee


I've only used UIWebView with the detectsPhoneNumbers property set to YES, which means you don't need to put the <a> tag around phone numbers. Did you check that property?

With iPhone OS 3.0 and later, you should use UIDataDetectorTypePhoneNumber in the dataDetectorTypes property.

But if you're just writing HTML and not a Cocoa app, you probably want it to be like:

<a class="call" href="tel://18000000000">1 (800) 800-0000</a>

Make sure to include the slashes.

0

精彩评论

暂无评论...
验证码 换一张
取 消