简体   繁体   English

iPhone在播放声音时振动

[英]iPhone Vibrate While playing sound

How can I set iPhone to vibrate while playing the sound. 如何设置iPhone在播放声音时振动。

The code I use plays the sound firts and then vibrates or vice-versa. 我使用的代码会先发出声音,然后振动,反之亦然。

Thanks 谢谢

您可以简单地使用

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM