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 trialBoaz Keren Gil
18,947 Pointscalling the init instance
Hello, I'm doing everything correctly by now with he videos, but I can't understand yet why we use the init method, what good does it do? and why not just create the NSObjects without this if block?
1 Answer
Eduardo Scodino
5,083 PointsInit method is used to allocate and initiate the object with all those playlist information (artists name, titles, musics etc) at the time that you call it. So you do not have to add it later.