Database Reference
In-Depth Information
-(void)viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:animated];
//Comment: removes self from responding to any notifications
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
Now it is time to test our app again. You can test across multiple devices or you can test in the
simulator by making some changes and then removing the app and re-installing it. It is important
to remember that the iCloud Key-Value Store is not immediate. iOS determines when updates are
retrieved and even when calling synchronize, it can take anywhere from a few seconds to up to an
hour to receive notification of a change.
Summary
From this chapter, you have gained a fundamental understanding of the intricacies in adding iCloud
support to an app. You've learned the importance of App IDs, provisioning profiles, and entitlements.
You should now be able to start an app project from scratch and set it up to work with iCloud.
The Key-Value Store is an important start in learning and becoming versed in all that iCloud has to
offer you. Apple has provided you with a simple, but effective API to update your app's Key-Value
Store and respond to changes made by other instances of your app.
In the following chapters I will explain how to integrate CoreData as well as UIDocuments into your
apps. I also discuss different methods you can use to test these technologies and ensure that you
are getting the results you are expecting.
 
Search WWH ::




Custom Search