Instance Method


Returns a Boolean indicating whether the item is targeted for storage in iCloud.


- (BOOL)isUbiquitousItemAtURL:(NSURL *)url;



Specify the URL for the file or directory whose status you want to check.

Return Value

YES if the item is targeted for iCloud storage or NO if it is not. This method also returns NO if no item exists at url.


This method reflects only whether the item should be stored in iCloud because a call was made to the setUbiquitous:itemAtURL:destinationURL:error: method with a value of YES for its flag parameter. This method does not reflect whether the file has actually been uploaded to any iCloud servers. To determine a file’s upload status, check the NSURLUbiquitousItemIsUploadedKey attribute of the corresponding NSURL object.

See Also

Managing iCloud-Based Items


An opaque token that represents the current user’s iCloud Drive Documents identity.

- URLForUbiquityContainerIdentifier:

Returns the URL for the iCloud container associated with the specified identifier and establishes access to that container.

- setUbiquitous:itemAtURL:destinationURL:error:

Indicates whether the item at the specified URL should be stored in iCloud.

- startDownloadingUbiquitousItemAtURL:error:

Starts downloading (if necessary) the specified item to the local system.

- evictUbiquitousItemAtURL:error:

Removes the local copy of the specified item that’s stored in iCloud.

- URLForPublishingUbiquitousItemAtURL:expirationDate:error:

Returns a URL that can be emailed to users to allow them to download a copy of a flat file item from iCloud.