Article

Fetching Assets

Retrieve asset metadata or request full asset content.

Overview

You fetch assets to begin working with them. Use the class methods listed in Fetching Assets to retrieve one or more PHAsset instances representing the assets you want to display or edit. For example, to fetch all the assets in an asset collection (such as an album or moment), use the fetchAssetsInAssetCollection:options: method. Each fetch method takes a PHFetchOptions parameter that you use to specify the assets to retrieve and how to sort them.

See Also

Fetching Assets

+ fetchAssetsInAssetCollection:options:

Retrieves assets from the specified asset collection.

+ fetchAssetsWithMediaType:options:

Retrieves assets with the specified media type.

+ fetchAssetsWithLocalIdentifiers:options:

Retrieves assets with the specified local-device-specific unique identifiers.

+ fetchKeyAssetsInAssetCollection:options:

Retrieves assets marked as key assets in the specified asset collection.

+ fetchAssetsWithOptions:

Retrieves all assets matching the specified options.

+ fetchAssetsWithBurstIdentifier:options:

Retrieves assets with the specified burst photo sequence identifier.

+ fetchAssetsWithALAssetURLs:options:

Retrieves assets using URLs provided by the Assets Library framework.

Deprecated