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

# pickerView(_:rowHeightForComponent:)

Called by the picker view when it needs the row height to use for drawing row content.

```
optional func pickerView(_ pickerView: UIPickerView, rowHeightForComponent component: Int) -> CGFloat
```

## Parameters

`pickerView`

The picker view requesting this information.

`component`

A zero-indexed number identifying a component of `pickerView`. Components are numbered left-to-right.

## Return Value

A float value indicating the height of the row in points.

---

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)