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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -