I need to play some system sound when users click button in my application which is running on iPad. How to implement it in iOS?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to play a short sound (shorter than 30 sec), you can do it easily like this:
Note: You’ll have to add AudioToolbox framework and import it (
#import <AudioToolbox/AudioToolbox.h>)Also note that the file can be: