在响应链中使用视图控制器Using View Controllers in the Responder Chain[苹果官方文档的翻译]
来源:互联网 发布:中国人口数据分析 编辑:程序博客网 时间:2024/06/11 11:32
View controllers are descendants of the UIResponder class and are therefore capable of handling all sorts of events. When a view does not respond to a given event, it passes that event to its superview, traveling up the view hierarchy all the way to the root view. However, if any view in the chain is managed by a view controller, it passes the event to the view controller object before passing it up to the superview. In this way, the view controller can respond to events that are not handled by its views. If the view controller does not handle the event, that event moves on to the view’s superview as usual.
这里有重要的一句话,如果响应链中的视图是由视图控制器管理的,它先把触摸事件传递给视图控制器对象,然后才把事件传递给它的父视图。
0 0
- 在响应链中使用视图控制器Using View Controllers in the Responder Chain[苹果官方文档的翻译]
- 视图控制器中的资源管理 Resource Management in View Controllers [苹果官方文档的翻译]
- 使用视图控制器容器(翻译自苹果官方文档 Implementing a Container View Controller)
- The Responder Chain(响应链)
- The Responder Chain(响应者链)
- Sencha Touch 2 官方文档翻译之 Using Views in your Applications(使用视图)
- Sencha Touch 2 官方文档翻译之 Using Views in your Applications(使用视图)
- IOS中触摸事件(touch event)的分发以及响应者链(The Responder Chain)机制理解
- iOS 事件响应链详解(The Responder Chain)
- 事件分发:响应链(Event Delivery: The Responder Chain)
- iOS事件响应链详解(The Responder Chain)
- iOS - 官方文档阅读 - Resource Management in View Controllers
- Responder Chain 响应者链总结
- iOS 响应者链Responder Chain浅析
- 响应者链(Responder Chain)
- 响应者链(Responder Chain)
- iOS事件响应链(Responder Chain)
- Sencha Touch 2 官方文档翻译之 Controllers(控制器学习指南)
- 安卓真机调试出现Installation failed due to invalid APK file!错误的解决办法
- 标准I/O缓冲 与 用户程序的行缓冲区
- 如何让路由器外部的电脑能访问路由器内部的WEB服务器[TP-LINK]
- 富文本编辑器内容替换
- ubuntu下用openocd+jlink控制stm32
- 在响应链中使用视图控制器Using View Controllers in the Responder Chain[苹果官方文档的翻译]
- PL/SQL Developer迁移数据库
- DIV高度自适应及应该注意的问题
- vim7.2 代码自动补全的配置
- 最大流算法 -- Dinic算法
- ad10 取消自动保存功能
- 杨辉三角
- 如何捕捉推荐系统中随时间变化的动态信息
- java环境变量