阅读背景:

Unity XCode 拨号和一键加群

来源:互联网 

请添加图片描述

拨号 void CallPhone(const char* iphone){ NSString *nsIphone =[NSString stringWithFormat:@"tel://%s",iphone]; NSLog(nsIphone); NSURL* url = [NSURL URLWithString:nsIphone]; NSString *version = [UIDevice currentDevice].systemVersion; NSLog(version); if(version.doubleValue>10.0){ [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil]; } else{ [[UIApplication sharedApplication] openURL:url]; } } 一键加群 拨号 void CallPhone(const char* iphone){ NSString *



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: