播放系统声音

时间:2012-06-28 09:57:07

标签: xcode audio uialertview

我有UILocalNotification播放以下声音:

notification1.soundName = @"Alarm";

当应用程序打开时,我使用

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
在appDelegate中

拦截警报,否则该警报不会被用户注意到,但声音不会播放。我怎样才能播放声音?在进一步提到的方法中,我得到了一个UIAlertView,但我找不到用声音发射它的可能性。

谢谢!

0 个答案:

没有答案