Frage

I want to show iPod as a shortcut in my app, to convenient users, they can click it to invoke real iPod app. How can I do it? Any code I can take reference? Thank you.

War es hilfreich?

Lösung

In iOS 5 you can call:

if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"music://"]]){     
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"music://"]];
    }
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top