iOS 应用程序跳转到appstore

来源:互联网 发布:尾气分析仪数据分析 编辑:程序博客网 时间:2024/05/02 02:26
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]];
0 0
原创粉丝点击