Play local notification default sound when displaying UIAlertView?

前端 未结 4 1389
不知归路
不知归路 2020-12-04 10:19

I\'m writing a reminders app for iPhone that displays reminders using local notifications.

If a reminder goes off while the application is running, the local notific

4条回答
  •  渐次进展
    2020-12-04 11:04

    You can play the default notification sound in this way:

    AudioServicesPlaySystemSound(1315);
    

    Here you'll find the list of the ids you can use as parameter of AudioServicesPlaySystemSound(id).

    Good coding!

提交回复
热议问题