iOS:单击按钮时如何要求画外音阅读特定标签

iOS: How to ask voice over to read a particular label when a button is clicked

我有一个 UILabel,它会在单击屏幕底部的按钮并满足特定条件时更改文本。我希望我的画外音在单击按钮并满足条件时阅读更新的文本。我该怎么做

如果你想要不同的行为,你可以post a notification to the accessibility system to get the behavior you're looking for. The following command specifically will shift focus to that label, effectively the same as if the user had tapped the label after activating the button. Read up on the other notification types

UIAccessibility.post(notification: .layoutChanged, argument: labelThatChanged)