1

I have a view controller where there is a MKMapView, and I want to disable Voiceover focus on this item. I tried this

[self.map setAccessibilityContainerType:UIAccessibilityContainerTypeNone];

but have the following warning :

'setAccessibilityContainerType:' is only available on iOS 11.0 or newer

When testing, VoiceOver focuses on the items which are present on the map, like towns or province borders and I don't know how to ignore these items

EDIT: i've tried the following answer:

How to disable accessibility for a view including all it's subviews?

so it's now

  self.map.accessibilityElementsHidden = YES;

And it works great !!

XLE_22
  • 5,124
  • 3
  • 21
  • 72
warsow
  • 23
  • 4

0 Answers0