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

*爱你&永不变心* 提交于 2019-11-30 08:11:14
Rakesh iOS Dev

self.accessibilityElementsHidden = YES;

This makes all subviews hidden from accessibility.

I would try setting the accessibilityElementsHidden property of the main view to YES. If that does not what you want, I would try overriding the UIAccessibilityContainer methods on the main view to return 0 children.

Just set the accessibilityElementsHidden property.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!