Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

When I set isAccessibilityElement = NO on a view that contains subviews with isAccessibilityElement = YES, VoiceOver still detects them.

I need to switch off accessibility for an entire view hierarchy that must be handled differently by VoiceOver. How can I achieve this without having to loop through every single item in the object graph and mess with it's setting?

like image 823
openfrog Avatar asked Jul 27 '13 11:07

openfrog


1 Answers

self.accessibilityElementsHidden = YES;

This makes all subviews hidden from accessibility.

like image 56
Rakesh iOS Dev Avatar answered Sep 29 '22 22:09

Rakesh iOS Dev