Showing posts with label Vibration. Show all posts
Showing posts with label Vibration. Show all posts

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);