Pradeep Reddy Kypa
Pradeep Reddy Kypa

Reputation: 4022

How to add UIAccessibility feature to a UIButton Action?

I am new to Accessibility and i got a requirement to implement this feature on click of a UIButton. Can someone please help me out in providing any sample code on how to implement this?

Upvotes: 1

Views: 2056

Answers (1)

Nitin Alabur
Nitin Alabur

Reputation: 5812

most of the ui elements have a .accessibilityHint and .accessibilityLabel properties.

just name them appropriately and you are good to go.

if you want more detail, check this SO post: iOS accessibility: label vs hint

Upvotes: 2

Related Questions