Instance Method

cancelImageRequest:

Cancels an asynchronous request

Declaration

- (void)cancelImageRequest:(PHImageRequestID)requestID;

Parameters

requestID

The numeric identifier of the request to be canceled.

Discussion

When you perform an asynchronous request for image data using the requestImageForAsset:targetSize:contentMode:options:resultHandler: method, or for a video object using one of the methods listed in Requesting Video Objects, the image manager returns a numeric identifier for the request. To cancel the request before it completes, provide this identifier when calling the cancelImageRequest: method.

See Also

Canceling a Request

PHImageRequestID

A numeric identifier for an asynchronous image request.

PHInvalidImageRequestID

A special value provided for asynchronous image requests that cannot be canceled.