Tag Archives: iCloud

How to use iCloud in your iOS App

In this series I’ll show you how to use iCloud in your iOS apps. We’ll discuss how to setup Xcode and your app, including App ID and Provisioning Profiles and I’ll demonstrate how to use all three flavours of iCloud: Key Value Storage, Document Storage and iCloud with Core Data.

The rest of this series is for members of my iOS Dev Diary only – you can watch it here: http://pinkstone.co.uk/how-t-use-icloud-in-your-ios-apps/

Enjoy!

How to remove data from your iCloud Storage

Apple_Podcast_logoTrouble backing up your device to iCloud? Is your storage constantly at the limit and you don’t know what to do about it?

Fret not! In this video I will show you some option you have to deal with that dreaded message “Not enough iCloud Storage”.

Essentially there are four things you can do to prevent this problem:

  • buy more iCloud Storage
  • backup less data (for example, don’t backup pictures)
  • remove older iCloud backups (think of devices you no longer own)
  • use less iCloud Document Storage (remove data from iMovie Theater, Shared Photostreams)

I will demonstrate all these options on my iPod Touch and show you how it works.

Enjoy!

 

How to use iCloud key value storage

Storing small bits of info in iCloud is very similar to using the local NSUserDefaults device storage. The only difference is that your App ID needs to be enabled for iCloud in iTunes Connect and that you need to enable it in your project:

Screen Shot 2013-01-10 at 19.00.51

Here’s how you save data to iCloud (from a text label):

And here’s how to retrieve it:

Synchronization takes a few seconds between devices, provided they are connected to the internet. Note that for testing iCloud you need physical devices – the simulator doesn’t work.