Instance Method

tableView:didUpdateFocusInContext:withAnimationCoordinator:

Tells the delegate that a focus update specified by the context has just occurred.

Declaration

- (void)tableView:(UITableView *)tableView didUpdateFocusInContext:(UITableViewFocusUpdateContext *)context withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator;

Parameters

tableView

A table-view object informing the delegate about the new focus.

context

An instance of the UIFocusUpdateContext class, containing metadata for the focus related update.

coordinator

An instance of the UIFocusUpdateContext class, containing metadata for the focus related update.

Discussion

This functionality of this delegate method is equivalent to overriding UITableView class’s implementation of tableView:didUpdateFocusInContext:withAnimationCoordinator:. This delegate method provides additional UITableView-related information in its context parameter, such as the index paths for the previously and next focused views. Note that, these index paths are available only if their views are contained within the table view. To learn more about the information provided by the context, see see UITableViewFocusUpdateContext.

See Also

Managing Table View Focus

- tableView:canFocusRowAtIndexPath:

Asks the delegate whether the cell at the specified index path is itself focusable.

- tableView:shouldUpdateFocusInContext:

Asks the delegate whether the focus update specified by the context is allowed to occur.

- indexPathForPreferredFocusedViewInTableView:

Asks the delegate for the table view’s index path for the preferred focused view.