iphoneiphone-vibrate

Programmatically make the iPhone vibrate


Possible Duplicate:
Making the iPhone vibrate

How can you programmatically make the iPhone vibrate?

Any ideas, or tutorial links appreciated.


Solution

  • You can use

    AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); 
    

    Note that you need to add the AudioToolbox framework and import the following header file:

    #import <AudioToolbox/AudioServices.h>