Disable iPhone vibrate with Setting Bundle [iPhone SDK] -
I am creating an app, now I am pushing the bundle while setting the bundle of iPhone and moving I want
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate); Setting bundle: Title: Vibration / / / / Key: dis_vib //// Type: PSToggleSwitchSpecifier
Before calling vibration codes, check to see what NSUserDefaults are called.
For example:
if ([[NSUserDefaults StandardUserDefaults] boolForKey: @ "ShouldVibrate"]) {// Vibrate Code}
Where settings should be "where should" is the bundle setting.
Comments
Post a Comment