I have several UIBarButtonItem objects in Interface Builder, and I cannot find any option to set the accessibility label or hint for these buttons.
How can I set these attributes?
You can use the "User defined runtime attributes" and specify your accessibility information there:
It is not actually enough to just set the accessibilityLabel
User Defined Runtime Attribute in Interface Builder. You also have to set isAccessibilityElement
to true
. This keeps all of the accessibility information within Interface Builder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With