The UITableViewCells of my UITableView each contain their own table view with just one cell.
VoiceOver works fine selecting the cells of the main table view, but I can't figure out how to make the inner cells/table view selectable by VoiceOver.
Does anyone know how to make a UITableView inside of a UITableViewCell selectable by VoiceOver?
CodePudding user response:
You can use the UIAccessibilityCustomAction to select the inner cell by assigning each with a selector.
UIAccessibilityCustomAction(
name: "Call",
target: self,
selector: #selector(activateCallButton) // Your inner cell name
),
UIAccessibilityCustomAction(
name: "Open address in Maps",
target: self,
selector: #selector(activateLocationButton)
)
Reference - Apple docs
Hope it helps.
