Reputation: 4022
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
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