Reputation: 1568
For example, in the Mail app, after you delete an item via VoiceOver, you hear "Message deleted". How can I implement that for my custom action/button?
Upvotes: 1
Views: 698
Reputation: 353
You can use the UIAccessibilityPostNotification
method.
For example in Objective-C:
UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, @"String to be read");
For more information see: https://developer.apple.com/documentation/uikit/1615194-uiaccessibilitypostnotification
Upvotes: 4