I have a UIView that contains some controls (e.g. buttons, labels, etc.). I overlay this view with another view (using addSubview). If a user has VoiceOver turned on, they can scroll left and right to select controls. However, if I hide the view, so the controls are no longer visible, the user can still swipe and select them (although they actually don't work). Since this is very confusing for a blind user, I would like this to not happen. I even tried deleting the view containing the controls (using removeFromSuperview), but the user can STILL scroll to select them (although the small boxes that select them are no longer in the correct positions). This is similar to what VoiceOver remembered,that these controls were there and will remember that forever more.
I also found the 'accessibilityElementsHidden' property, and I tried setting the value to YES in the view that contains the controls when it is hidden, but this also does not work.
Is this a mistake in VoiceOver, or am I missing something? Is there any workaround?
Thank.
source
share