View hierarchy-视图层次
来源:互联网 发布:windows防火墙打不开 编辑:程序博客网 时间:2024/06/08 00:33
今天看了iOS开发者视图层次的介绍,这里简单记录一下,要是有人把上面的内容翻译一下就好了。或者能整理一些新手需要学习的内容,希望能推荐给我。
View hierarchy
A view hierarchy defines the relationships of views in a window to each other. You can think of a view hierarchy as an inverted tree structure with the window being the top node of the tree. Under it come views structurally specified by parent-child relationships. From a visual perspective, the essential fact of a view hierarchy is enclosure: one view contains one or more other views, and the window contains them all.(讲了视图像一个倒树)
The view hierarchy is a major part of the responder chain(相应链), and it is something that the application frameworks use to determine the layering order of views when they render the content of a window in a drawing pass. The view hierarchy is also the governing concept behind view composition: You construct compound views by adding subviews to a superview. Finally, the view hierarchy is a critical factor in the multiple coordinate systems found in a window.
Three View Properties Define Relationships in the Hierarchy
A view is related to other views through two properties, and these relationships determine the form of the hierarchy:
superview
— The view above a given view in the hierarchy; this is the view that encloses it.All views except the topmost view must have a superview.
subviews
— The views below a given view in the hierarchy; these are the views that it encloses.A view may have any number of subviews, or it may have none.
Views also include another property that identifies their window.
In iOS, a Window is a View
In OS X a window has a single “content view,” a background view from which, structurally, all other views in the hierarchy descend. However, in iOS applications, a window is a view (UIWindow
inherits from UIView
), and so it acts as its own content view.
Prerequisite Articles
- View object
- Declared property
Definitive Discussion
- The View Hierarchy
Sample Code Projects
(None)
- View hierarchy-视图层次
- Android View视图层次
- lldb po [$view recursiveDescription]; 打印视图层次
- View Hierarchy
- 使用Xcode 自带的view hierarchy 来分析view的层次和属性
- view and view hierarchy
- ios 调试显示视图view的层次结构
- jQuery选择器 – 层次(Hierarchy)
- hierarchy 分析 Launcher View
- 使用Hierarchy View
- View Hierarchy [UIKit]
- Hierarchy view android实用工具
- Hierarchy View使用
- android Inspector View Hierarchy
- 屏幕元素层次 - Hierarchy of Screen Elements
- JRTPLIB:Class Hierarchy(类层次)翻译
- 设置 Eclipse call hierarchy 最大层次
- 层次分析法(Analytic Hierarchy Process)
- 工作环境搭建(8) - CentOS7命令行安装Android SDK
- 向前奔跑中、、、
- 广点通sdk接入 _应用墙广告
- ListView图片优化(一)---findViewWithTag
- SMS服务API设计
- View hierarchy-视图层次
- 学习CRYPTO第二天
- 03、3分钟教你搞定这该死的Delegate!代理与协议委托的深度理解
- JavaScript 文章备注
- 直接修改别人jar包里面的class文件 工具:jclasslib
- java synchronized
- 威佐夫博奕
- Android学习(三)
- input line-height造成的兼容问题