" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Sometimes we need to vibrate our device on particular events/alert.

Posted on November 24th, 2015 by Waseem Ahmad

Sometimes we need to vibrate our device on particular events/alert. Here is some simple step for achieve this functionality in iPhone project. Step #1   Add AudioToolbox Framework in project. Step #2 Import header file #import <AudioToolbox/AudioServices.h> in your xyz.m file. Step #3   Call this function. + (void) vibrateDevice { AudioServicesPlayAlertSound(kSystemSoundID_Vibrate); } Note:-  Vibration works for an iPhone only, iPad/iPod family it’s […]