Quote:
Originally Posted by Apocryphon
I've followed this Windows-based app (which also uses Navigation and Table View controllers as well) tutorial to create my app. However, I didn't select Use Core Data in the beginning. What steps should I take to change it so my app uses Core Data in storing user-entered entries in the Table View? What files do I need to add?
|
Make a new project that uses core data and copy the appDelegate files into your project. Otherwise, select a windows-based app and check the use core data for storage option. For every view where you need your managedObjectContext, write this in under the viewDidLoad method:
YourAppDelegate *appDelegate = (YourAppDelegate *)[[UIApplicaton sharedApplication] delegate];
self.managedObjectContext = appDelegate.managedObjectContext;
if you need help with core data, read these tutorials here:
iPhone Core Data Tutorial Part 1 | Bukisa.com