gpt4 book ai didi

ios - 如何使用 AudioServicesPlaySystemSound(1336) 不振动

转载 作者:行者123 更新时间:2023-11-29 01:57:51 25 4
gpt4 key购买 nike

我在代码中先导入AudioToolbox,然后再AudioServicesPlaySystemSound(1336)来播放系统声音。它可以工作,但也会振动,这是不需要的。为什么会振动?我怎样才能做到不呢?谢谢。

最佳答案

1336Update.caf,它是 SMSReceived_Selection 类别的一部分。如果iOS设备设置为接收短信​​时振动,则会引起振动。

如果您不需要振动,只需提取此声音并自己使用它,而不是使用 AudioServicesPlaySystemSound()

关于ios - 如何使用 AudioServicesPlaySystemSound(1336) 不振动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30652344/

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