我在ios中使用uilocalnotification的自定義聲音。 但它不玩。文檔文件夾中存在 文件。 通知正在與local.soundName= UILocalNotificationDefaultSoundName;
如何在iphone中更改UILocalNotification中的自定義聲音?
NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString *path = [NSString stringWithFormat:@"%@/DingDongTone.wav",documentsPath];
local.soundName=path;
請幫助。 謝謝。
感謝您的信息。當我收到localnotification時,我可以在背景中播放.caf聲音嗎?但聲音文件在文檔文件夾中。 – Mani