标签: ios uilocalnotification avplayer alarm
我必须创建一个闹钟应用程序。我使用UILocalNotifications,但我想将音频流作为闹钟启动。 UILocalNotifications正在运作。但是,如果我将播放([player play])方法放在didReceiveLocalNotification中,它就不会播放!
UILocalNotifications
[player play]
didReceiveLocalNotification