首页 > 代码库 > 应用跳转到AppStore指定关键字搜索界面

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

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

    NSString *str = [NSStringstringWithFormat:

                     @"https://itunes.apple.com/WebObjects/MZStore.woa/wa/search?mt=8&submit=edit&term=%@#software",

                     [@"呵呵"stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] ];


    [[UIApplicationsharedApplication] openURL:[NSURLURLWithString:str]];

    NSLog(@"%@",str);

跳转到下载界面


   NSString *str = [NSStringstringWithFormat:

                     @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%d",

                     909480609 ];

    [[UIApplicationsharedApplication] openURL:[NSURLURLWithString: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 = [NSURLURLWithString:stringURL];

    [[UIApplicationsharedApplication] openURL:url];

    



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