Dha*_*nav 4 iphone cocoa-touch objective-c ios
我尝试了以下代码,但它无法正常工作
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",@"55698"]]];
Run Code Online (Sandbox Code Playgroud)
请提供支持iOS7 SDK的帮助.
在您的代码中删除// tel:之后
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:55698"]];
Run Code Online (Sandbox Code Playgroud)
要么
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",@"55698"]]];
Run Code Online (Sandbox Code Playgroud)