2015-10-19 31 views
0

我試圖像這樣推出播客應用有了URL方案

- (void)setupPodcast 
{ 
    NSLog(@"setup podcast"); 
    NSString *str = [NSString stringWithFormat:@"pcast://podcasts.sdxme.org/RSS/default.aspx?ID=%ld", (long)[[NSUserDefaults standardUserDefaults] integerForKey:@"CustomerID"]]; 
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]]; 
} 

2015-10-18 23:45:11.367 [29302:1691034] LaunchServices: ERROR: There is no registered handler for URL scheme pcast

但是它看起來像PCAST​​方案中的URL打開播客應用不再支持?如何在podcast應用程序中打開我自己的XML Feed?

+0

看看這個http://stackoverflow.com/questions/8201724/how-to-register-a-custom-app-opening-url-scheme-with-xcode-4 – tnylee

回答

2

我相信蘋果改變了他們認可的播客方案,你現在應該使用'feed:// ...'。

+0

它看起來像飼料打開新聞應用程序和pcast打開了podcast應用程序,但僅在安裝了podcast應用程序的設備上。不在模擬器上。 – 4m1r