is there a possibility to get number detected in UIWebView.
When I click a number inside UIWebView on my iPad I get popover with following choices:
Send Message, Add to Contacts, Copy.
How can I remove that popover and get detected number?
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0,100,1024,768)];
webView.dataDetectorTypes = UIDataDetectorTypePhoneNumber;
NSURL *url = [NSURL URLWithString:@"somepage"];
NSURLRequest *urlRequest = [NSURLRequest requestWithURL:url];
[webView loadRequest:urlRequest];
UIWebView detects phone numbers and when I click on number, system shows me popover.
Interesting thing is that none of the UIWebViewDelegate methods is called when I tap on the number.
I only need to get detected number.
Use following delegate method to detect phone number :
Here is the reference thread : UIWebView doesn't detect phone number links