<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPickerView/view(forRow:forComponent:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPickerView(im)viewForRow:forComponent:"
  },
  "title" : "view(forRow:forComponent:)"
}
-->

# view(forRow:forComponent:)

Returns the view used by the picker view for a given row and component.

```
func view(forRow row: Int, forComponent component: Int) -> UIView?
```

## Parameters

`row`

The zero-indexed number of a row of the picker view.

`component`

The zero-indexed number of a component of the picker view.

## Return Value

The view provided by the delegate in the [`pickerView(_:viewForRow:forComponent:reusing:)`](/documentation/UIKit/UIPickerViewDelegate/pickerView(_:viewForRow:forComponent:reusing:)) method. Returns `nil` if the specified row of the component is not visible or if the delegate does not implement p`ickerView:viewForRow:forComponent:reusingView:`.

---

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)