Jim Xu
Jim Xu

Reputation: 21

How to get the system ringtones programmatically in ios?

I am newbie and now programming an alarm in ios4, and need to get the ringtones programmingly, then, the users set his favorite song for the alarm. However, failed to find such API in ios sdk. Could anyone give me some hints?

Upvotes: 2

Views: 2710

Answers (2)

Hassan Malik
Hassan Malik

Reputation: 559

Use AudioServicesPlaySystemSound(xxxx) for using system tones in your Application

Upvotes: 0

Ole Begemann
Ole Begemann

Reputation: 135550

There is no public API in the iOS SDK that provides read or write access to the ringtones.

Upvotes: 5

Related Questions