Contents

indexPath(forObject:)

Returns the index path of a given object.

Declaration

func indexPath(forObject object: ResultType) -> IndexPath?

Parameters

  • object:

    An object in the receiver’s fetch results.

Return Value

The index path of object in the receiver’s fetch results, or nil if object could not be found.

Discussion

In versions of iOS before 3.2, this method raises an exception if object is not contained in the receiver’s fetch results.

See Also

Accessing Results