How to Make the iPhone Vibrate

Dec 15, 2009   //   by Derek van Vliet   //   Development  //  1 Comment

The iPhone is capable of dazzling the user eyes by pushing impressive graphics around its screen and tickling their ears with a lot of audio to go with it, but you may want to give users of your iPhone app some additional sensory experience on top of that. You can do this by making the device vibrate.

We actually use the Audio framework to vibrate device. Here is how to do it in 3 simple steps:

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:


1 Comment

  • […] App’s Display Name and Version 14. How to Retrieve Your App Delegate Singleton Instance 15. How to Make the iPhone Vibrate 16. How to Show the Network Activity Indicator 17. How to Prevent the iPhone From Sleeping 18. How […]

Leave a comment

Our Games