开发者

how to detect any Link in HTMLString in webView? (Iphone)

if i want that i can detect the link appeared in my HTMLstring in webView...how can I do it?

I know in IB As we checkmark 开发者_如何学JAVAthe box of auto detectable link... but I want to know programatically


Did you check the dataDetectorTypes property?

For example use this:

[[self content] setDataDetectorTypes: UIDataDetectorTypeAll];

You could use:

UIDataDetectorTypePhoneNumber
UIDataDetectorTypeLink
UIDataDetectorTypeAddress
UIDataDetectorTypeCalendarEvent
UIDataDetectorTypeNone
UIDataDetectorTypeAll

Reference-Link UIWebView

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜