A context object that provides information relevant to a specific focus update from one view to another.


class UITableViewFocusUpdateContext : UIFocusUpdateContext


A focus update context provides extra information that is only relevant to focus updates involving table views. Instances of this class are ephemeral and are usually discarded after the update is finished.


Locating Focusable Items in a Table View

var previouslyFocusedIndexPath: IndexPath?

Returns the index path of the cell containing the context’s previously focused view.

var nextFocusedIndexPath: IndexPath?

Returns the index path of the cell containing the context’s next focused view.


Conforms To

See Also

Table Management

Estimating the Height of a Table's Scrolling Area

Provide height estimates for your table view’s headers, footers, and rows to ensure that scrolling accurately reflects the size of your content.

class UITableViewController

A view controller that specializes in managing a table view.

protocol UITableViewDelegate

Methods for managing selections, configuring section headers and footers, deleting and reordering cells, and performing other actions in a table view.

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