Instance Property

networkAccessAllowed

A Boolean value that specifies whether Photos can download the requested image from iCloud.

Declaration

@property(nonatomic, assign, getter=isNetworkAccessAllowed) BOOL networkAccessAllowed;

Discussion

If YES, and the requested image is not stored on the local device, Photos downloads the image from iCloud. To be notified of the download’s progress, use the progressHandler property to provide a block that Photos calls periodically while downloading the image. If NO (the default), and the image is not on the local device, the PHImageResultIsInCloudKey value in the result handler’s info dictionary indicates that the image is not available unless you enable network access.

See Also

Fetching Image Data from iCloud

progressHandler

A block that Photos calls periodically while downloading the image.

PHAssetImageProgressHandler

The signature for a block that Photos calls while downloading asset data from iCloud. Used by the progressHandler property.