Contents

firstObject

The first object in the fetch result.

Declaration

var firstObject: ObjectType? { get }

Discussion

You specify the ordering of a fetch result in the PHFetchOptions object you pass to a fetch method.

Returns nil if the fetch result is empty.

See Also

Querying a Fetch Result