最近發(fā)現(xiàn)在使用撥打電話時(shí)
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:1231230123"]];
發(fā)現(xiàn)點(diǎn)擊取消會(huì)報(bào)下面這個(gè)警告
[Common] _BSMachError: port 6b17; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
解決方法
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:1231230123"]];
});