I’ve looked at many tutorials but all of them are too confusing or outdated. How can I add sounds to Xcode 4.3? If there is a good tutorial out there you can just show me it. Thanks.
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.
This is a very vague question. I’m also fairly sure (from looking at the iPhone tag) that you don’t want to add sounds to Xcode, you want to play sounds in an iPhone app.
If you do truly want to add a sound to your Xcode project, then you drag the audio file into your project or import it through the menus.
If you want to play audio, then you should use AVAudioPlayer. This tutorial here is about as simply and well as it can be explained, so there is no point in me rephrasing it. Just take a look and you should be good.
The tutorial even offers example code.