OGeek|极客世界-中国程序员成长平台

标题: ios - 你能在 UIViewController 类中实现 Accessibility 方法吗? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 09:28
标题: ios - 你能在 UIViewController 类中实现 Accessibility 方法吗?

我在 UIViewController 子类中实现了 Accessibility 委托(delegate)方法,并在这些委托(delegate)方法中放置了一个断点,但它从未命中断点。这是什么原因?如果有人对此有任何想法,请告诉我。



Best Answer-推荐答案


UIAccessibility 协议(protocol)中的方法旨在描述可访问的屏幕元素,而不是代码的逻辑 block 或整个屏幕。辅助功能客户端将查询您的用户界面以获取描述,因此您需要在 UIView 子类上实现该协议(protocol)。

请考虑浏览Accessibility Programming Guide for iOS了解 iOS 上的无障碍 API。

关于ios - 你能在 UIViewController 类中实现 Accessibility 方法吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31732354/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4