gpt4 book ai didi

ios - 如何播放 UILocalNotificationDefaultSoundName?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:42:07 24 4
gpt4 key购买 nike

我正在尝试找到一种方法来播放默认通知声音,但我做不到 :)我的意思是只播放(AVAudioPlayer、AudioToolbox 等)这个声音。任何人都可以帮忙吗? :)

最佳答案

如果你只想播放通知使用的默认声音:

AudioServicesPlaySystemSound(1315);

下面的链接是系统声音的代码列表 http://iphonedevwiki.net/index.php/AudioServices

关于ios - 如何播放 UILocalNotificationDefaultSoundName?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17157014/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com