Derek Li
Derek Li

Reputation: 3111

Access built-in iOS alarm clock sound in my app

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?

Upvotes: 2

Views: 1729

Answers (2)

SashaZd
SashaZd

Reputation: 3319

If you're using the sound in a notifications try :

notification.soundName = UILocalNotificationDefaultSoundName;

Upvotes: 0

WrightsCS
WrightsCS

Reputation: 50707

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.

Upvotes: 3

Related Questions