我的播客链接不再打开播客应用程序。有任何想法吗?

时间:2015-09-23 18:56:22

标签: ios swift podcast

这是我得到的代码:

@IBAction func podcastsButtonLinktoWebsite(sender: AnyObject) {

    let podcastsAddress = "pcast://clearview-church-shreveport/id404066921"

    let escapedPodcastsAddress = podcastsAddress.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLQueryAllowedCharacterSet())

    let url = NSURL(string: escapedPodcastsAddress!)
    UIApplication.sharedApplication().openURL(url!)

}

在最新更新之前,它工作正常,但现在如果我点击该按钮时关闭我的应用程序。有什么想法吗?

我也试过了:

    let podcastsAddress = "https://itunes.apple.com/us/podcast/clearview-church-shreveport/id404066921"

但这也不起作用。

我是新手。恩惠和宽恕请。我非常感谢你们所有人!我学到了很多!

马里

0 个答案:

没有答案
相关问题