EDIT: iOS 6 is now available, and as mentioned by kevboh, you can now pass an argument when posting a UIAccessibilityLayoutChangedNotification
or UIAccessibilityScreenChangedNotification
:
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, myAccessibilityElement);
myAccessibilityElement
will in most cases be a UIView with isAccessibilityElement set to YES (the default for many views).
Alternatively, you could add the new trait added in iOS6 UIAccessibilityTraitHeader
to your accessibility elements' accessibilityTraits
, which should have the same result (although I didn't test this yet).
ORIGINAL: There's new API in iOS 6 that can't be discussed here because it is still under NDA, but can be found in the "Accessibility for iOS" video of WWDC 2012 (Session 210).
Failing that though, a workaround could be to manually trigger a announcement to override the default focused accessibility label announcement:
UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, @"Your text");
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…