应用跳转到AppStore指定关键字搜索界面

2017-12-15  本文已影响0人  目睹整个事件发生的弓长

应用跳转到AppStore指定关键字搜索界面

NSString*str = [NSString stringWithFormat:@"https://itunes.apple.com/WebObjects/MZStore.woa/wa/search?mt=8&submit=edit&term=%@#software",[@"呵呵"stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] ];
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:str]];
NSLog(@"%@",str);

跳转到下载界面

NSString*str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%d",909480609];

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

根据分类搜索界面

// NSString *stringURL = @" https://itunes.apple.com/cn/genre/ios-zhi-bo/id6007?mt=8 ";

// https://itunes.apple.com/cn/artist/xiamen-meitu-technology-co./id416048308

//

https://itunes.apple.com/cn/artist/xiamen-meitu-technology-co./id416048308#

NSString*stringURL =@"https://itunes.apple.com/cn/genre/ios-jiao-yu/id6017?mt=8";

NSURL*url = [NSURL URLWithString:stringURL];

[[UIApplication sharedApplication]openURL:url];

笔记:

// 评分

NSString *str = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",
@"346703830"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

//软件首页
NSString *str2 = [NSString stringWithFormat: 
                 @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@",
                 @"346703830"];  
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str2]];
上一篇下一篇

猜你喜欢

热点阅读