相关疑难解决方法(0)

iOS打开带有查询的YouTube应用程序(网址方案)

是否有使用指定搜索查询打开YouTube iOS应用的网址方案?

我试过了:

NSString *stringURL = @"http://www.youtube.com/results?search_query=foo";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
Run Code Online (Sandbox Code Playgroud)

但这将打开Safari而不是YouTube应用程序.

youtube search ios

14
推荐指数
3
解决办法
3万
查看次数

标签 统计

ios ×1

search ×1

youtube ×1