I am creating view based application, where i will be going to next view, via addSubview
method.
The problem is, when I turn the feature of VoiceOver ON, and addsubviews, it takes the accessory labels from previous views. That is , if I click on view at the rect, where there is label in previous view, then also, VoiceOver will detect it as accessibility label and start reading that label.
But, If I use, navigation controller to go to next view controller, I don't get any problem.
Can anyone please tell me, if apple itself has supported VoiceOver facility only for navigation based application, or there is some other solution for VoiceOver in view based applications ?
PS I have tried the same on some demo apps also, but same results.
So, when in current view I am adding a subview which contains buttons, accessibility reads the labels behind the subview as well. I want the accessibility to read buttons on added view, and rest of the viewable part of the previous view only(and not the labels got hidden behind added view). can someone tell, if it is a bug of voiceover in iPhone, that by default, it reads parentView's labels also, on addsubview ?
Use this screen changed notification
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil);
if you need to focus a specific object/view then pass those at the place of nil.