应用跳转到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];

    



郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。