Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Upload text documents and images easily, also you can save your defaults in your cloud, just with few lines. Follow me : @sergimtzlosa

branch: master
Octocat-spinner-32 CloudMe.h first commit November 25, 2011
Octocat-spinner-32 CloudMe.m first commit November 25, 2011
Octocat-spinner-32 NoteSheet.h first commit November 25, 2011
Octocat-spinner-32 NoteSheet.m first commit November 25, 2011
Octocat-spinner-32 readme.markdown custom markdown November 25, 2011
readme.markdown

Singleton for iCloud

Upload text documents and images easily, also you can save your defaults in your cloud, just with few lines.

  • Upload Images:

    [[CloudMe shared] uploadImage:[UIImage imageNamed:@"myImage.png"]
                           result:^(BOOL success) {
    
                               NSLog(@"SUCCESS? => %@", (success) ? @"YES" : @"NO");
    
                           }];
    
    [[CloudMe shared] downloadAllImagesWithResult:^(UIImage *image) {
    
        //Loop images and do something
        NSLog(@"EMPTY IMAGE? => %@", (image == nil) ? @"YES" : @"NO");
    }];
    
    [[CloudMe shared] downloadImageWithKey:@"KEY_IMAGE" result:^(UIImage *image) {
    
        //image retrieved
        NSLog(@"EMPTY IMAGE? => %@", (image == nil) ? @"YES" : @"NO");
    }];
    
  • Upload Text documents:

    [[CloudMe shared] uploadDocumentWithcontents:@"text to cloud" result:^(BOOL success) {
    
        NSLog(@"UPLOAD? => %@", (success) ? @"YES" : @"NO");
    }];
    
    [[CloudMe shared] downloadAllDocumentsWithResult:^(UIDocument *document) {
    
        //Loop documents and do something
        NSLog(@"EMPTY DOC? => %@", (document == nil) ? @"YES" : @"NO");
    }];
    
    [[CloudMe shared] downloadDocumentWithName:@"DOC_NAME" result:^(UIDocument *document) {
    
        //Loop documents and do something
        NSLog(@"EMPTY DOC? => %@", (document == nil) ? @"YES" : @"NO");
    }];
    
Something went wrong with that request. Please try again.