Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working #102

Open
PK18AK opened this issue Jan 22, 2017 · 0 comments
Open

Not working #102

PK18AK opened this issue Jan 22, 2017 · 0 comments

Comments

@PK18AK
Copy link

PK18AK commented Jan 22, 2017

files are not reflecting in iCloud when I am using save method of "iCloudDocumentSync".

I am using below code.

 [[iCloud sharedCloud] setDelegate:self]; // Set this if you plan to use the delegate
    [[iCloud sharedCloud] setVerboseLogging:YES]; // We want detailed feedback about what's going on with iCloud, this is OFF by default

    [[iCloud sharedCloud] setupiCloudDocumentSyncWithUbiquityContainer:@"iCloud.com.spartix"];

    
    [[iCloud sharedCloud] saveAndCloseDocumentWithName:@"Name.jpg" withContent:[[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:strUrl]] completion:^(UIDocument *cloudDocument, NSData *documentData, NSError *error) {
        if (error == nil) {
            // Code here to use the UIDocument or NSData objects which have been passed with the completion handler
        }
    }];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants