Question

I have an app that contains a view with a cell that uses the built-in cell.textLabel and a custom UITextField in cell.contentView.

I am working with Voiceover and accessibility and the desired behavior would be that whenever I tap anywhere in the cell, the accessibility element for the UITextField would be selected.

The behavior that I am actually seeing is that the cell.textLabel accessibility labels are taking over. When I don't have cell.textLabel set to anything, everything works as expected. I have also attempted to set the "isAccessibilityElement" property with no luck:

[cell.textLabel.text setIsAccessibilityElement:NO];

Does anyone know how to make this work the way I want?

Was it helpful?

Solution

I was able to figure this out using this: cell.textLabel.accessibilityElementsHidden = YES;

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top