---
title: "view(forRow:forComponent:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipickerview/view(forrow:forcomponent:)"
---

# view(forRow:forComponent:)

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

## Declaration

```swift
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

Return Value The view provided by the delegate in the pickerView(_:viewForRow:forComponent:reusing:) method. Returns nil if the specified row of the component is not visible or if the delegate does not implement pickerView:viewForRow:forComponent:reusingView:.
