---
title: "pickerView(_:accessibilityLabelForComponent:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilitylabelforcomponent:)"
---

# pickerView(_:accessibilityLabelForComponent:)

Returns a string that identifies the picker view component.

## Declaration

```swift
optional func pickerView(_ pickerView: UIPickerView, accessibilityLabelForComponent component: Int) -> String?
```

## Parameters

- `pickerView`: The picker view object.
- `component`: The component in the picker view that requires a label.

## Return Value

Return Value A succinct label, in a localized string, that identifies the picker view component.

## Discussion

Discussion Implement this optional method to ensure that the accessibility element representing the picker view provides an appropriate label for each component. The system prefers the pickerView(_:accessibilityAttributedLabelForComponent:) method over this one. For in-depth information on how to create an appropriate label, see Crafting Useful Labels and Hints.

## See Also

### Providing descriptive information

- [pickerView(_:accessibilityAttributedLabelForComponent:)](uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilityattributedlabelforcomponent:).md)
- [pickerView(_:accessibilityHintForComponent:)](uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilityhintforcomponent:).md)
- [pickerView(_:accessibilityAttributedHintForComponent:)](uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilityattributedhintforcomponent:).md)
- [pickerView(_:accessibilityUserInputLabelsForComponent:)](uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilityuserinputlabelsforcomponent:).md)
- [pickerView(_:accessibilityAttributedUserInputLabelsForComponent:)](uikit/uipickerviewaccessibilitydelegate/pickerview(_:accessibilityattributeduserinputlabelsforcomponent:).md)
