当前位置: 首页 > 工具软件 > Shake Toolbox > 使用案例 >

how to make iphone shake

訾雅畅
2023-12-01

1.Add the AudioToolbox framework to your target.


2. In the file you intend to trigger a vibration, import the AudioToolbox header file:
#import <AudioToolbox/AudioToolbox.h>


3. Finally, call the following line to make the device vibrate:
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);




 needed to change an iphone setting .


 For sounds , had vibrate turned off. 


 change vibrate to ON under sounds
 类似资料:

相关阅读

相关文章

相关问答