Home > Articles > Programming > General Programming/Other Languages

  • Print
  • + Share This
This chapter is from the book


Why not build on what you’ve learned by experimenting?

  1. Add the following code to the top of each method in the application delegate to assist with debugging:

    if (debug==1) {
        NSLog(@"Running %@ '%@'", self.class, NSStringFromSelector(_cmd));
  2. Examine the console log to compare the different locations persistent store files are saved to when running the application on a device versus running on the iOS Simulator. This is useful information when it comes time to open the persistent store for troubleshooting.
  3. Change the persistent store type in the loadStore method of CoreDataHelper.m from NSSQLStoreType to NSXMLStoreType and try running the application. You won’t be able to run the application because this store type is not available on iOS.
  • + Share This
  • 🔖 Save To Your Account