iOS中如何提取电话号码,进入拨号界面?
if ([UIApplication instancesRespondToSelector:@selector(canOpenURL:)]) {
NSString *telephonNumber = @"手机号";
NSURL *url = [NSURL fileURLWithPath:telephonNumber];
if ([[UIApplication sharedApplication] canOpenURL:url]) {
[[UIApplication sharedApplication] openURL:url];
}
}