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 Introduction to Core Data Understanding the Core Data Stack What is Core Data?

Gundra Kiran
PLUS
Gundra Kiran
Courses Plus Student 5,931 Points

How did you create coredata class?

Hi, I was going through coredata course, I started the first video find that the course began without any beginning, I mean how did you open that coredata class, where did all the code the come from that we deleted in first video

1 Answer

You do not create a Core Data class. You create an Core Data model that contains a managed context. If your application currently doesn't contain this, you can add it as you would add a new file. You will find it under Core Data. You will have to manually setup your managed context inside the AppDelegate. Search Google for best practices. I recommend finding articles on Core Data from Medium. Also checkout YouTube. Ultimately, the more sources you're exposed to, the more Core Data and data persistence will become familiar and understandable.