---
title: indexPathsForSelectedRows
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableview/indexpathsforselectedrows
---

# indexPathsForSelectedRows

The index paths that represent the selected rows.

## Declaration

```swift
var indexPathsForSelectedRows: [IndexPath]? { get }
```

## Discussion

Discussion The value of this property is an array of index-path objects each identifying a row through its section and row index. The value of this property is nil if there are no selected rows.

## See Also

### Selecting rows

- [indexPathForSelectedRow](uikit/uitableview/indexpathforselectedrow.md)
- [selectRow(at:animated:scrollPosition:)](uikit/uitableview/selectrow(at:animated:scrollposition:).md)
- [deselectRow(at:animated:)](uikit/uitableview/deselectrow(at:animated:).md)
- [allowsSelection](uikit/uitableview/allowsselection.md)
- [allowsMultipleSelection](uikit/uitableview/allowsmultipleselection.md)
- [allowsSelectionDuringEditing](uikit/uitableview/allowsselectionduringediting.md)
- [allowsMultipleSelectionDuringEditing](uikit/uitableview/allowsmultipleselectionduringediting.md)
- [selectionFollowsFocus](uikit/uitableview/selectionfollowsfocus.md)
- [selectionDidChangeNotification](uikit/uitableview/selectiondidchangenotification.md)
