import AudioToolbox
@IBAction func play(sender: UIButton) {
// Sound
AudioServicesPlaySystemSound(UInt32(1001))
// Vibration
AudioServicesPlaySystemSound(UInt32(kSystemSoundID_Vibrate))
}
Last active
May 3, 2016 22:04
-
-
Save KentarouKanno/efd5f4b9fc318cb3e62e to your computer and use it in GitHub Desktop.
SystemSound
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment