问题
I'm building a countdown timer app, and wondering if I can access the list of sound clips in the built-in clock app, or do I have to create my own sound clip?
回答1:
Your app runs in a sandboxed environment, so accessing anything outside that sandbox is not possible. You will need to include your own sounds in your application bundle and access them that way.
回答2:
If you're using the sound in a notifications try :
notification.soundName = UILocalNotificationDefaultSoundName;
来源:https://stackoverflow.com/questions/9524032/access-built-in-ios-alarm-clock-sound-in-my-app