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
精彩评论