FXForms icon indicating copy to clipboard operation
FXForms copied to clipboard

accessibilityLabel for cells and tableViews

Open BObereder opened this issue 10 years ago • 5 comments

How would I set the accessibilityLabel for the cells in a form and the tableView where the options for a Option FormField are displayed?

BObereder avatar Sep 16 '14 11:09 BObereder

You can include arbitrary key/value pairs in the field dictionary, provided that they match up with a property of the UITableViewCell. So @"accessibilityLabel": @"Foo" should work for setting a cell's accessibility label.

I don't think there's currently a way to do this for the fields in an options subform.

nicklockwood avatar Sep 16 '14 12:09 nicklockwood

Ah ok perfect, thanks for that quick answer.

Is there a way to set the accessibilityLabel for the tableView of the options subform?

BObereder avatar Sep 16 '14 12:09 BObereder

I just tried it setting the accessibilityLabel of a cell with key/value pairs but unfortunately it didn't work. ;(

BObereder avatar Sep 16 '14 13:09 BObereder

Struggling with this too. This is a larger issue because common iOS acceptance testing tools use the accessibility labels to drive automated UI tests.

milesegan avatar May 21 '15 04:05 milesegan

Related issue #366

yakubbaev avatar Oct 02 '15 20:10 yakubbaev