Last active
May 29, 2018 12:51
-
-
Save spotlessicode/de2359cb589c5acb24951da79a56899b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add Framework: AudioToolbox.framework | |
#import <AudioToolbox/AudioToolbox.h> | |
//Obj-C: | |
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate); | |
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); | |
//Swift: | |
AudioServicesPlayAlertSound(UInt32(kSystemSoundID_Vibrate)); | |
AudioServicesPlaySystemSound(UInt32(kSystemSoundID_Vibrate)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment