发短信和打电话遇到控制台打印的警告,如题
解决:
// NSURL *url = [NSURL URLWithString:@"tel://10086"];
NSURL *url = [NSURL URLWithString:@"sms://10086"];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[[UIApplication sharedApplication] openURL:url];
});