tableView(_:canFocusRowAt:)
Asks the delegate whether the cell at the specified index path is itself focusable.
Declaration
optional func tableView(_ tableView: UITableView, canFocusRowAt indexPath: IndexPath) -> BoolParameters
- tableView:
The table view requesting this information.
- indexPath:
An index path locating a row in
tableView.
Return Value
Discussion
The functionality of this delegate method is equivalent to overriding the cell’s canBecomeFocused method. If true is returned, then the cell at the specified index path is focusable, meaning none of its contents can be focused. Returningfalse means the cell itself is not focusable, however this does not prevent any of its contents from being focused. If this method is not implemented, then the return value is assumed to be true.