开发者

iPhone webkit dialer not working

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜