Class

PHObject

The abstract superclass for Photos model objects (assets and collections).

Declaration

@interface PHObject : NSObject

Overview

You do not create or use instances of this class directly. Instead, work with instances of its concrete subclasses—PHAsset, PHAssetCollection, PHCollectionList, and PHObjectPlaceholder.

Because the PHObject class implements the isEqual: and hash methods in terms of its localIdentifier property, you can use techniques that depend on these methods to keep track of asset and collection objects.

Topics

Identifying an Object

localIdentifier

A unique string that persistently identifies the object.

Relationships

Inherits From

Conforms To

See Also

Asset Retrieval

Fetching Objects and Requesting Changes

Get assets, asset collections, and collection lists matching a specified query.

PHAsset

A representation of an image, video, or Live Photo in the Photos library.

PHAssetCollection

A representation of a Photos asset grouping, such as a moment, user-created album, or smart album.

PHCollection

The abstract superclass for Photos asset collections and collection lists.

PHCollectionList

A group containing Photos asset collections, such as Moments, Years, or folders of user-created albums.

PHFetchResult

An ordered list of assets or collections returned from a Photos fetch method.

PHFetchOptions

A set of options that affect the filtering, sorting, and management of results that Photos returns when you fetch asset or collection objects.