应用跳转到AppStore指定关键字搜索界面
應用跳轉到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];
總結
以上是生活随笔為你收集整理的应用跳转到AppStore指定关键字搜索界面的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS8开发~UI布局(三)深入理解au
- 下一篇: iOS开发教程:Storyboard全解