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

How to launch AppStore application with request?

2011-03-02 10:27 381 查看
If you will need launch AppStore application with search request – use this example

1
2
3
4
5
NSString *str = @"itms-apps://ax.search.itunes.apple.com";
str = [NSString stringWithFormat:@"%@/WebObjects/MZSearch.woa/wa/search?media=software&term=", str];
str = [NSString stringWithFormat:@"%@3d4medical", str];

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




for getting reviews screen of application, you can will use this example:

1
2
3
4
5
6
7
NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa";
str = [NSString stringWithFormat:@"%@/wa/viewContentsUserReviews?", str];
str = [NSString stringWithFormat:@"%@type=Purple+Software&id=", str];

// Here is the app id from itunesconnect
str = [NSString stringWithFormat:@"%@325180061", str];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:str]];
for getting screen of application:

1
2
3
4
5
6
NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa";
str = [NSString stringWithFormat:@"%@/wa/viewSoftware?id=", str];

// Here is the app id from itunesconnect
str = [NSString stringWithFormat:@"%@325180061", str];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:str]];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐