您的位置:首页 > 移动开发

iOS开发中,应用内直接跳转到Appstore

2014-11-07 09:55 417 查看
1.进入App Store中指定的应用

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]];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: