跳转AppStore @”*******” 为你要跳转的APPID
NSString *urlStr = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@", @"*******"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlStr]];
拨打电话 string 为你要拨打电话
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",string]] options:@{} completionHandler:^(BOOL success) {
}];
备注 : @”telprompt:// * ” 会有弹框提示 确认是否要拨打
@”tel://*” 直接拨打
本文介绍如何通过代码实现iOS应用中跳转至AppStore指定应用页面及拨打电话的功能。具体包括构造用于跳转AppStore的URL方案及使用不同格式的电话调用字符串实现带或不带提示的电话拨打。
885

被折叠的 条评论
为什么被折叠?



