I found an UIWebview
Change between IOS 5.0
and IOS 6.0
If You use [UIWebview loadRequest]
for Callout a number and give a url string like @"tel://02-1234567,123"
.
It's working fine in IOS5.0
but NOT in IOS 6.0
I try to override this function
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
I found My Request String become "file://tel://02-1234567,123"
.
The Scheme I Got is @"file://"
not @"tel://"
and I can't make a phone call.
If I simply use a number without extension like @"tel://02-1234567"
,It's working fine.
In Some reason I couldn't say,I can't use [UIApplication sharedApplication]
OpenUrl to make a phone call.
Does any one have the same problem?
Your URI is incorrect. Correct one is "tel:1234567890". See RFC3966 . Also, check Apple docs .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.