Graphics Programs Reference
In-Depth Information
attributes:nil
error:nil];
// Specify the new file to store Core Data's SQLite file
NSURL *dbURL = [nosyncDir URLByAppendingPathComponent:@"feed.db"];
if (![psc addPersistentStoreWithType:NSSQLiteStoreType
configuration:nil
URL:dbURL
options:options
error:&error]) {
[NSException raise:@"Open failed"
format:@"Reason: %@", [error localizedDescription]];
}
Finally, we can test our work. Build and run Nerdfeed on a device. Click Stop in Xcode ,
and then build and run on another device. Restart the application on the first device, and
select a row from the table view. After a few moments, you will see the checkmark appear
in that row on the other device!
One thing to keep in mind when using iCloud-capable applications is that deleting an ap-
plication does not delete the data from Apple's servers. Sometimes when developing an
iCloud application, you will need to change the structure of your data and delete the old
data structure from the cloud.
To delete an application's data from the cloud, open the Settings application on the device
and select iCloud . Next, select Storage & Backup near the bottom of the next screen and
then Manage Storage . You will see a screen that looks like Figure 30.8 .
Figure 30.8 Managing iCloud Storage
 
Search WWH ::




Custom Search