博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ios 跳转到某 app 的评价区域、由某应用跳转到其他应用
阅读量:4659 次
发布时间:2019-06-09

本文共 993 字,大约阅读时间需要 3 分钟。

废话不多说,直接上代码:

/** * Added by Bruce Yang on 2012.08.31.09.58~ * 从一个 app 中跳转到另外一个 app 中(也可以是网页地址,会在 safari 中打开)~ * 要修改 info.plist 中 URL types 键所对应的值方才能够从其他应用中跳转进来~ */-(void) openAnotherAppInThisApp {//    NSString* strIdentifier = @"http://www.baidu.com";    NSString* strIdentifier = @"companyname://com.companyname.bundleidentifier";    BOOL isExsit = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:strIdentifier]];    if(isExsit) {        NSLog(@"App %@ installed", strIdentifier);        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:strIdentifier]];    }}/** * Added by Bruce Yang on 2012.08.31.09.60~ * 跳转到 appStore,并且定位在某个 app 的评论区~ */-(void) jumpToCommentArea {    NSString* strLoc = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=536226604";    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:strLoc]];}

转载于:https://www.cnblogs.com/yang3wei/archive/2012/10/04/2739344.html

你可能感兴趣的文章
函数名作为参数传递
查看>>
apt-get for ubuntu 工具简介
查看>>
数值计算算法-多项式插值算法的实现与分析
查看>>
day8-异常处理与网络编程
查看>>
Python基础-time and datetime
查看>>
shell脚本练习01
查看>>
WPF图标拾取器
查看>>
通过取父级for循环的i来理解闭包,iife,匿名函数
查看>>
HDU 3374 String Problem
查看>>
数据集
查看>>
[Leetcode] unique paths ii 独特路径
查看>>
HDU 1217 Arbitrage (Floyd + SPFA判环)
查看>>
IntelliJ idea学习资源
查看>>
Django Rest Framework -解析器
查看>>
ExtJs 分组表格控件----监听
查看>>
Hibernate二级缓存配置
查看>>
LoadRunner常用术语
查看>>
关于jedis2.4以上版本的连接池配置,及工具类
查看>>
记忆讲师石伟华微信公众号2017所有文章汇总(待更新)
查看>>
FactoryBean
查看>>