我有UILocalNotification
播放以下声音:
notification1.soundName = @"Alarm";
当应用程序打开时,我使用
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
在appDelegate中拦截警报,否则该警报不会被用户注意到,但声音不会播放。我怎样才能播放声音?在进一步提到的方法中,我得到了一个UIAlertView
,但我找不到用声音发射它的可能性。
谢谢!