iPhone - make VoiceOver announce label text change
问题 Is it possible using VoiceOver on the iPhone to announce the updated text on a label if it changes? This would be analogous to a live-region in ARIA. Thanks. 回答1: You can make VoiceOver announce any text you like with: UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, @"Your text"); If a label should announce its text as soon as it is updated, simply extend the UILabel and override the setText method. The .h File: @interface UIVoicedLabel : UILabel { } @end And its