Upload text documents and images easily, also you can save your defaults in your cloud, just with few lines. Follow me : @sergimtzlosa
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with brightsoftdev:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CloudMe.h
CloudMe.m
NoteSheet.h
NoteSheet.m
readme.markdown

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");
    }];