<!--
{
  "availability" : [
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfacePicker/setSelectedItemIndex(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfacePicker(im)setSelectedItemIndex:"
  },
  "title" : "setSelectedItemIndex(_:)"
}
-->

# setSelectedItemIndex(_:)

Selects the specified item in the list.

```
func setSelectedItemIndex(_ itemIndex: Int)
```

## Parameters

`itemIndex`

The index of the item to select. This index represents the index into the array of items you set using the [`setItems(_:)`](/documentation/WatchKit/WKInterfacePicker/setItems(_:)) method.

## Discussion

If the value in `itemIndex` exceeds the number of items in the array, the picker selects the last item. If `itemIndex` is negative, the picker selects the first item in the array.

---

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)