Ben Packard
Ben Packard

Reputation: 26476

Accessibility Label for composite view

I have a custom UIView that combines a few different views. How do I specify the accessibility label and/or value at the superview level, and remove accessibility from the component parts? VoiceOver is describing the subviews when their values are misleading in the context of the overall view.

Upvotes: 1

Views: 514

Answers (1)

Nitin Alabur
Nitin Alabur

Reputation: 5812

For your UIView that has to be accessible, set the accessibilityElementsHidden property to YES;

See the accessibilityElementsHidden documentation.

Upvotes: 1

Related Questions