Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App (iOS7) Animating and Intercepting Events Adding Sound

Benny Chew
PLUS
Benny Chew
Courses Plus Student 2,717 Points

Why NSBundle and NSURL?

Hi guys, I got the sound part to work, but I have a question. Quite a lot of code to make a sound play btw, but this can be fixed by making a method.

2 new concepts were introduced but they were not really explained why they were used. Can someone explain why we need to use NSBundle and NSURL. Thanks in advance! I will read the help to learn what they are.