首页 > 移动平台 > 详细

应用内直接跳转到Appstore

时间:2016-02-19 19:03:34      阅读:174      评论:0      收藏:0      [点我收藏+]
 1 iOS开发中,应用内直接跳转到Appstore
 2 1.进入appstore中指定的应用
 3 NSString *str = [NSString stringWithFormat: 
 4                          @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa /wa/viewContentsUserReviews?type=Purple+Software&id=%d", 
 5                          myAppID ];  
 6 
 7         [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
 8 
 9         其中myAppID为itunesconnect中的应用程序id
10 
11 
12 
13 2.进入首页
14 
15 NSString *str = [NSString stringWithFormat: 
16 
17                          @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@",
18                          m_myAppID ];  
19         [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

 

应用内直接跳转到Appstore

原文:http://www.cnblogs.com/-yun/p/5201767.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!