【发布时间】:2013-09-12 18:47:27
【问题描述】:
是否有 URL Scheme 可以使用指定的搜索查询打开 YouTube iOS 应用?
我试过了:
NSString *stringURL = @"http://www.youtube.com/results?search_query=foo";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
但这将打开 Safari 而不是 YouTube 应用程序。
【问题讨论】: