About Windows and Views
Windows do not have any visible content themselves but provide a basic container for your application’s views. Views define a portion of a window that you want to fill with some content.
Views Manage Your Application’s Visual Content
A view is an instance of theUIView class (or one of its subclasses) and manages a rectangular area in your application window. Views are responsible for drawing content, handling multitouch events, and managing the layout of any subviews.
Windows Coordinate the Display of Your Views
A window is an instance of theUIWindow class and handles the overall presentation of your application’s user interface. Windows work with views (and their owning view controllers) to manage interactions with, and changes to, the visible view hierarchy.
本文介绍了iOS应用中视图(Views)与窗口(Windows)的基本概念及其作用。视图负责绘制内容、处理触摸事件及子视图布局;窗口则协调视图的显示,并通过视图控制器管理用户界面的交互与变更。文章还提到了动画效果为用户提供界面变化的视觉反馈。
904

被折叠的 条评论
为什么被折叠?



