<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDelegate/tableView(_:canFocusRowAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITableViewDelegate(im)tableView:canFocusRowAtIndexPath:"
  },
  "title" : "tableView(_:canFocusRowAt:)"
}
-->

# tableView(_:canFocusRowAt:)

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

```
optional func tableView(_ tableView: UITableView, canFocusRowAt indexPath: IndexPath) -> Bool
```

## Parameters

`tableView`

The table view requesting this information.

`indexPath`

An index path locating a row in `tableView`.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the row indicated by `indexPath`; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

The functionality of this delegate method is equivalent to overriding the cell’s [`canBecomeFocused`](/documentation/UIKit/UIView/canBecomeFocused) method. If <doc://com.apple.documentation/documentation/Swift/true> is returned, then the cell at the specified index path is focusable, meaning none of its contents can be focused. Returning<doc://com.apple.documentation/documentation/Swift/false> 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 <doc://com.apple.documentation/documentation/Swift/true>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)