去APP Store评分,下载

本文详细介绍了如何使用Objective-C代码实现iOS应用的评分页面跳转和软件首页链接,包括针对iOS7及以上系统的适应性处理。
     1. 评分: 
       NSString *str = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", @"346703830"];  
       [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]]; 

       2. 软件首页 
       NSString *str2 = [NSString stringWithFormat: @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@", @"346703830"];  


   if ([[[UIDevicecurrentDevice] systemVersion]floatValue] >= 7.0)

            {

                str2 =[NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%@?mt=8",@"346703830"];

            }


     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str2]];

       其中,红色字体部分为itunesconnect中的应用程序id。

IOS7以后有写变化. 地址参照新添加部分代码



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值