2012-07-13 65 views
1

我想知道是否有方法来检索用户铃声或声音。我对他们的音乐播放列表不感兴趣,但像30秒的音频剪辑可以用于uilocalnotifications。有谁知道如何做到这一点?谢谢!检索用户铃声库

回答

2

查看此答案。 how to get the system ringtones programmingly in ios?

如果你还想发出音频通知,这article应该让你开始。 看来你可以指定一个文件名到soundName属性,或者通过UILocalNotificationDefaultSoundName(我猜想是)用户选择的通知声音。

- (void)scheduleNotificationWithItem:(ToDoItem *)item interval:(int)minutesBefore { 
    UILocalNotification *localNotif = [[UILocalNotification alloc] init]; 
    localNotif.soundName = UILocalNotificationDefaultSoundName; 
    ... 
    [localNotif release]; 
}