Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Play system beep sound programatically in iPhone?Is it possible to play system sound without adding it to bundle resources

Is it possible to play system beep alert sound.I do not want to add the sound file to my resource bundle and i want to access the apple system sounds and play it wherever needed.

like image 624
iOSdev Avatar asked Dec 16 '22 06:12

iOSdev


1 Answers

Try this

AudioServicesPlaySystemSound(1103);

to vibrate

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

For list of sounds

http://iphonedevwiki.net/index.php/AudioServices

like image 53
DogCoffee Avatar answered May 02 '23 06:05

DogCoffee