Tuesday, February 15, 2011

iPhone : Add vibration to your iPhone App code

Add the folowing framework :
AudioToolbox.framework

Import:
#import <AudioToolbox/AudioServices.h>

Now use this line of code to make iPhone vibrate:
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

No comments:

Post a Comment