iOS中如何提取电话号码,进入拨号界面?

mac2022-06-30  36

 if ([UIApplication instancesRespondToSelector:@selector(canOpenURL:)]) {

        

        NSString *telephonNumber = @"手机号";

        NSURL *url = [NSURL fileURLWithPath:telephonNumber];

        

        if ([[UIApplication sharedApplication] canOpenURL:url]) {

            

            [[UIApplication sharedApplication] openURL:url];

        }

        

    }

 

转载于:https://www.cnblogs.com/zxh-iOS/p/5237647.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)