Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 iPhone 设置为在播放声音时振动。
我使用的代码先播放声音,然后振动,反之亦然。
谢谢
You can simply use
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);