Book Image

iOS Development with Xamarin Cookbook

By : Dimitrios Tavlikos (USD)
Book Image

iOS Development with Xamarin Cookbook

By: Dimitrios Tavlikos (USD)

Overview of this book

Table of Contents (22 chapters)
iOS Development with Xamarin Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preparing for iCloud support


With the release of iOS 5, Apple introduced iCloud. iCloud is a service that provides cloud storage to iOS users, in a variety of configurations. For app development, we can use iCloud storage to save information that can be shared among different instances of our app running on different devices under the same user account. In this recipe, we will learn how to prepare an app to provide iCloud storage support.

Getting ready

Create a new iPhone Single View Application in Xamarin Studio and name it KeyValueApp. For this recipe, an App ID with iCloud enabled needs to exist on the developer account. Refer to Chapter 14, Deploying, for more information on how to create an App ID.

How to do it...

Perform the following steps:

  1. Double-click on the Entitlements.plist file to open it in Xamarin Studio.

  2. Check the Enable iCloud checkbox.

  3. If it asks you to choose an account, select your Apple developer account from the list.

  4. After enabling iCloud, the Use key-value store checkbox...