1

I have created a new appID and enabled iCloud on iTunes Connect. I have enabled entitlements within the app from the summary section. I have included this code for checking for iCloud availability:

NSURL *ubiq = [[NSFileManager defaultManager] 
                   URLForUbiquityContainerIdentifier:nil];
    if (ubiq) {
        NSLog(@"iCloud access at %@", ubiq);
        // TODO: Load document... 
    } else {
        NSLog(@"No iCloud access");
    }

All I need to do is a method to save an NSArray to the cloud and one to be able to download it. Yet, I'm having a hard time wading through the docs to figure out exactly what they should look like. Thanks for the help!!

Matthias Bauch
  • 89,811
  • 20
  • 225
  • 247
rowdyruckus
  • 892
  • 4
  • 12
  • 23

2 Answers2

2

Yes, the Doc's are the place to learn this. Or better yet watch the Stanford University iTunes U lectures. The fall 2011 has all new iOS 5 lectures including lectures on iCloud. You can now download the new iTunes-University app and get it that way also. These courses are taught by some of the best professors in the world and are clear, concise and jam packed with knowledge on an array of iOS subjects.

Hubert Kunnemeyer
  • 2,261
  • 1
  • 15
  • 14
  • if the docs provided all the info, why have stack overflow at all? – rowdyruckus Jan 21 '12 at 22:33
  • 3
    You will not find a better set of Documents/Instruction anywhere in the world. Apples Docs include everything you need to know for every aspect of Objective-C development. Would you like someone to write the app for you? Stack-Overflow is a place to "learn" and "share"from people who have the experience and knowledge and willingly share it. In my opinion from "your" question this is the correct answer. – Hubert Kunnemeyer Jan 21 '12 at 22:40
1

Have a look at iCloud basics and code sample

It basically shows you a working example - something which is missing from the Apple docs. Nonetheless, the docs are really good as pointed out by Hubert, so it's not a replacement. It just get's you started and will get you interested in reading the docs.

Community
  • 1
  • 1
n.evermind
  • 11,944
  • 19
  • 78
  • 122