【问题标题】:How to link a button to a Youtube user in Youtube app如何在 Youtube 应用程序中将按钮链接到 Youtube 用户
【发布时间】:2012-12-10 16:46:47
【问题描述】:

我发现此代码可以链接到 youtube 应用中的特定视频,但如何向 youtube 用户显示?

我使用此代码显示特定视频:

NSString *stringURL = @"http://www.youtube.com/watch?v=WZH30T99MaM";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];

http://www.youtube.com/user/username

http://www.youtube.com/channel/channelname+some变量

有人知道怎么做吗?

如果用户没有 ios6 之后可用的 youtube 应用程序怎么办?

【问题讨论】:

  • 你不能把stringURL设置为用户url吗? stringURL = @"http://www.youtube.com/user/username"?
  • @MasterRazer:你找到解决方案了吗?我也想在 youtube 应用中加载频道...
  • @FahimParkar 实际上没有。相反,我使用了 Webview 并在我的应用程序中加载了配置文件。对不起,如果这不能帮助你。
  • @MasterRazer : 啊......没关系......现在我正在做同样的事情;)但是寻找一种我可以打开频道的方式,如果 youtube 应用......
  • @FahimParkar Im annoyed of the youtube app. They do nothing with it. There is actually just the possibility to show a playlist or a specific video...Im 厌倦了这个。希望您的解决方案行之有效。

标签: iphone ios youtube


【解决方案1】:

应用内所有可能的链接都显示为here。不支持通过 URL 链接从您的 YouTube 应用中打开特定频道。

【讨论】:

  • 好吧,但这些链接仅适用于特定视频。我想加载用户而不是视频。如果你能告诉我我需要的代码,我会很高兴。
猜你喜欢
  • 2021-03-10
  • 2021-07-24
  • 2015-03-10
  • 1970-01-01
  • 1970-01-01
  • 2020-07-16
  • 1970-01-01
  • 2011-11-13
  • 2016-10-21
相关资源
最近更新 更多