如何获取 UIAccessibilityVoiceOverStatusChanged 通知
如何实现获取UIAccessibilityVoiceOverStatusChanged
通知?
我尝试如下但没有任何反应:
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self selector:@selector(notified:) name:UIAccessibilityVoiceOverStatusChanged object:self];
How to implement to get UIAccessibilityVoiceOverStatusChanged
Notification?
I tried like below but nothing happens :
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self selector:@selector(notified:) name:UIAccessibilityVoiceOverStatusChanged object:self];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这看起来很合理,但也许 object:self 应该是 object:nil ?
另一件事是确保您的签名正确:
That looks reasonable, except maybe object:self should be object:nil?
The other thing is to be sure your signature is correct:
我认为您可以尝试使用正确的选择器签名在 awakeFromNib 方法中添加观察者。
像这样的东西会起作用
I think you might try adding the observer in the awakeFromNib method with the right selector signature.
Something like this will work
您可以通过代码获取 UIAccessibilityVoiceOverStatusChanged 通知
you can get the UIAccessibilityVoiceOverStatusChanged Notification with the code