View and Window Architecture
视图和窗口架构
Viewsand windows present your application’s user interface and handle theinteractions with that interface. UIKit and other system frameworks provide anumber of views that you can use as-is with little or no modification.You can also define custom views for places where you need to present contentdifferently than the standard views allow.
视图和窗口显示了你应用的用户界面,并处理同那个界面的交互。UIKit和其他系统框架提供了许多视图,你照原样(as-is)少许或不修改就能使用。你也能够为你需要呈现的,不同于标准试图给予的内容的地方,使用自定义视图。
Whether you usethe system views or create your own custom views, you need to understand theinfrastructure provided by the UIView and UIWindow classes. These classes provide sophisticated facilities for managing the layoutand presentation of views. Understanding how those facilities work is importantfor making sure your views behave appropriately when changes occur in yourapplication.
无论你是使用系统视图还是创建自己的自定义视图,你都需要理解由UIView类和UIWindow类提供的基础结构。这些类提供了复杂的工具,用于管理视图的布局和显示。了解这些工具怎样工作是重要的,以确保当你的应用发生改变时,您的视图能够表现正常。