Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Playlist Browser with Objective-C Building a Music Library Model Creating a Music Library

Boaz Keren Gil
Boaz Keren Gil
18,947 Points

calling 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

Init 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.