Change order of read items with VoiceOver

后端 未结 8 1188
醉话见心
醉话见心 2020-12-07 17:31

I have a bunch of buttons on the screen which are positioned intuitively visually but are not read in an intuitive order by VoiceOver. This is because certain buttons like U

8条回答
  •  独厮守ぢ
    2020-12-07 18:03

    I tried Wesley's answer of setting the array of the accessibilityElements but it didn't work for me.

    Apple has some documentation Enhancing the Accessibility of Table View Cells with an example in code. Basically you set the accessibility label of the cell (the parent view) to the values of the accessibility labels of the child views.

    [cell setAccessibilityLabel:[NSString stringWithFormat:@"%@, %@", cityLabel, temperatureLabel]];
    

    This is what worked for me.

提交回复
热议问题