【问题标题】:In iPhone, can I create a link to a page of podcast on iTunes Store?在 iPhone 中,我可以在 iTunes Store 上创建指向播客页面的链接吗?
【发布时间】:2012-08-02 07:34:42
【问题描述】:

在 Apple Music 应用程序的播客标题列表底部,有一个链接 (Get More Episodes...) 指向 iTunes Store 上的播客页面。

我可以在我的应用中做同样的事情吗?

编辑

我正在使用 MediaPlayer 框架从 iphone 的 ipod 库中获取播客。

编辑

我发现了两个相关的问题。
他们都说没有办法从 iPod Library 中的 MPMediaItem 获取 iTunes ID。

Is there a way to retrieve iTunes Persistent ID on iPhone?

Obtaining iTunes ID to an iPod player item

【问题讨论】:

    标签: iphone ios


    【解决方案1】:

    是的

    -(IBAction)pushToAppleStore
    {
    
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://itunes.apple.com/gb/tv-season/episode-1/id545306665?i=547954947"]];
    }
    

    【讨论】:

    • 谢谢。要使用该 url,我必须知道 id(id545306665 )。如何知道我的应用用户选择的播客 id?
    • 您是如何获得原始播客的?我从桌面上的 iTunes 中获得了链接,只需右键单击它并复制 URL,或者如果您想要特定剧集,只需单击价格右侧的按钮或免费字样并复制链接。
    • 我正在使用 MediaPlayer 框架从 iphone 的 ipod 库中获取播客。
    • 这不是我以前必须做的事情,所以对此无能为力。
    • 还是谢谢你。您的回答很有帮助,因为我也想知道如何打开网址。并且方法的名称(-pushToAppleStore)很好。我添加了有关 id(iTunes ID)的信息。
    猜你喜欢
    • 2012-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多