美文网首页
应用跳转到AppStore指定关键字搜索界面

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

作者: 目睹整个事件发生的弓长 | 来源:发表于2017-12-15 10:11 被阅读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]];
    

    相关文章

      网友评论

          本文标题:应用跳转到AppStore指定关键字搜索界面

          本文链接:https://www.haomeiwen.com/subject/slurwxtx.html