1
我想知道是否有方法來檢索用戶鈴聲或聲音。我對他們的音樂播放列表不感興趣,但像30秒的音頻剪輯可以用於uilocalnotifications。有誰知道如何做到這一點?謝謝!檢索用戶鈴聲庫
我想知道是否有方法來檢索用戶鈴聲或聲音。我對他們的音樂播放列表不感興趣,但像30秒的音頻剪輯可以用於uilocalnotifications。有誰知道如何做到這一點?謝謝!檢索用戶鈴聲庫
查看此答案。 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];
}