< Back
Page 6 of 6
This chapter is from the book
Exercises
Why not build on what you’ve learned by experimenting?
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)); }
- 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.
- 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.
< Back
Page 6 of 6