Disabling iCloud

Even though Grocery Dude now supports iCloud, it doesn’t mean that the user necessarily wants to use it. The user may wish to selectively disable iCloud for Grocery Dude yet still use iCloud with his or her other applications. To add this flexibility, a settings bundle with an iCloudEnabled key will be added to allow the user to change his or her preference on using iCloud with Grocery Dude.

Update Grocery Dude as follows to implement the iCloudEnabled setting:

1. Select the Grocery Dude group and click File > New > File....

2. Click iOS > Resource > Settings Bundle and then click Next.

3. Ensure the Grocery Dude target and an appropriate directory have been selected, and then click Create.

4. Expand Settings.bundle and select ...

Get Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.