Instance Method


Cancels a previously triggered data prefetch request.


optional func tableView(_ tableView: UITableView, cancelPrefetchingForRowsAt indexPaths: [IndexPath])



The table view issuing the cancellation of the prefetch request.


The index paths of the items for which the data is no longer required.


The table view calls this method on the main queue to cancel prefetch requests for cells that are no longer needed. Use this method to cancel operations initiated by a previous call to tableView(_:prefetchRowsAt:).

For information about how to cancel an asynchronous data loading task, see Concurrency Programming Guide.

See Also

Fetching the Row Data

func tableView(UITableView, prefetchRowsAt: [IndexPath])

Instructs your prefetch data source object to begin preparing data for the cells at the supplied index paths.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software