Objective c 检索用户铃声库

Objective c 检索用户铃声库,objective-c,ios,xcode,Objective C,Ios,Xcode,我想知道是否有办法检索用户的铃声或声音。我对他们的音乐播放列表不感兴趣,但我喜欢30秒的音频剪辑,可以用于uilocalnotifications。有人知道怎么做吗?谢谢 看看这个答案。 如果您仍然想启动音频通知,这应该可以让您开始。 您似乎可以为soundName属性分配一个文件名,或者为用户选择的通知声音传递UILocalNotificationDefaultSoundName - (void)scheduleNotificationWithItem:(ToDoItem *)item in

我想知道是否有办法检索用户的铃声或声音。我对他们的音乐播放列表不感兴趣,但我喜欢30秒的音频剪辑,可以用于uilocalnotifications。有人知道怎么做吗?谢谢

看看这个答案。

如果您仍然想启动音频通知,这应该可以让您开始。 您似乎可以为soundName属性分配一个文件名,或者为用户选择的通知声音传递
UILocalNotificationDefaultSoundName

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