码迷,mamicode.com
首页 > 移动开发 > 详细

跳转到AppStore 的不同位置办法

时间:2014-10-21 19:16:52      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:io   ar   for   sp   div   on   amp   ad   bs   

程序跳转到appstore中指定的应用  

1.进入appstore中指定的应用
NSString *str = [NSString stringWithFormat: 
                         @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa /wa/viewContentsUserReviews?type=Purple+Software&id=%d", 
                         myAppID ];  

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

其中myAppID为itunesconnect中的应用程序id



2.进入首页

NSString *str = [NSString stringWithFormat: 

                         @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@",
                         m_myAppID ];  
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

跳转到AppStore 的不同位置办法

标签:io   ar   for   sp   div   on   amp   ad   bs   

原文地址:http://www.cnblogs.com/liyufeng2013/p/4040845.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!