Hierarchy in my TableViewCell in storyboard is like below:
When I activated voiceover, it reads the labels not in the order in the storyboard but in a mixed order.
->TableViewCell
--->Label1
--->Label2
--->Label3
--->Button
--->Label4
Is there a way to change the voiceover hierarchy for tableviewcell?
Edit: I tried this in cellforrowat
, but nothing changed.
cell.accessibilityElements = [Label1, Label2, Label3, Button, Label4]
Edit 2: Setting isAccessibilityElement = false
makes my accessibilityElements order work. But cell selection to voiceover is not working now.