gpt4 book ai didi

ios - UIAccessibilityVoiceOverStatusDidChangeNotification 方法被多次调用

转载 作者:行者123 更新时间:2023-12-01 22:18:31 25 4
gpt4 key购买 nike

我将我的 VC 添加为 viewWillAppear 中 UIAccessibilityVoiceOverStatusDidChangeNotification 通知的观察者。但是,当我打开/关闭 VoiceOver 时,此通知会被调用两次。

这是正常行为吗? VoiceOver 是否有运行或未运行以外的其他状态?

最佳答案

...this notification gets called twice when I turn VoiceOver on/off.



在我这边,当我在听 .voiceOverStatusDidChangeNotification事件,我在连接的情况下收到 2 个通知,在断开连接的情况下收到 3 个通知。😰
enter image description here

Is this normal behaviour?



那是 绝对不正常 ⟹我写了一个 电话 开发者 电话 技术 小号 支持 ncident (no 731230503) 解决这个问题,这是 Apple 的回答:

We cannot discuss the architecture of the system but I can tell you this a bug [...] Your application should receive only one notification [...] With our currently shipping configurations there is not [a way to get only one notification per event].



我提交了一份题为 的错误报告为一个事件多次发送“VoiceOver 状态发生更改通知”引用 FB7628293 .

Does VoiceOver have any status other than running or not running?



不,只有这两个关于 VoiceOver 状态的信息 .
您应该会收到 only one notification per event不幸的是,情况显然并非如此。

现在,你知道为什么了 UIAccessibilityVoiceOverStatusDidChangeNotification 方法被多次调用 ... 仍在 iOS 13 中,并且在 Apple 修复此错误之前不会改变。 😥

关于ios - UIAccessibilityVoiceOverStatusDidChangeNotification 方法被多次调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49410364/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com