use*_*740 12 ios uilocalnotification
我已经为我的应用程序完成了基本通知.我想在我的通知中添加声音效果.
UILocalNotification *localNotification = [[UILocalNotification alloc] init];
if (localNotification == nil)
return;
localNotification.fireDate = [NSDate date];
//localNotification.timeZone = [NSTimeZone defaultTimeZone];
localNotification.alertBody = msg;
localNotification.soundName = @"Morse.aiff";
[[UIApplication sharedApplication] presentLocalNotificationNow:localNotification];
Run Code Online (Sandbox Code Playgroud)
如何添加音效?
归档时间: |
|
查看次数: |
15724 次 |
最近记录: |