这允许用户设计布局对象,比如标题。
布局对象控制的不仅仅是大小和位置。
Layout objects control more than just the size and position of their views.
布局对象作用在集合视图上没有什么限制。
There are no limits to how a layout object can affect the views in a collection view.
布局对象可以移动一些视图,但是不能移动其他的。
欲了解其它用于布局的不同种类的视图组,请参阅普通布局对象。
To learn about some of the different kinds of view groups used for a layout, read Common Layout Objects.
比如,只要你想,你可以让布局对象把视图们排成一排。
For example, a layout object can stack views on top of each other if it wants.
真正能限制布局对象的是你的应用到底想要哪种展示方式?
The only real limitation is how the layout object affects the visual style you want your app to have.
你可以子类化基础布局对象来实现让你的应用自定义布局。
You can subclass the basic layout object to implement custom layouts for your app.
表格的布局对象的创建形式,包括采取行动,隐藏字段等。
Form layout object to create forms, including actions, hidden fields etc.
布局对象并不直接作用于视图,因为它并不实际拥有这些视图。
A layout object never touches the views it manages directly because it does not actually own any of those views.
布局对象的唯一职责就是决定集合视图中项的位置的视觉表现形式。
The layout object is solely responsible for determining the placement and visual styling of items within the collection view.
比如,一个布局对象,可以使用装饰视图来实现一个自定义背景对象。
For example, a layout object might use decoration views to implement a custom background appearance.
布局对象可以只挪动视图一点点,也可以把他们移动到屏幕上的随机位置。
It can move views only a little bit, or it can move them randomly around the screen.
更多关于布局对象融合履行它对集合视图的责任的信息,请见《创建自定义布局》。
For detailed information about how a layout object fulfills its responsibilities to the collection view, see Creating Custom Layouts.
和单元格视图不同的是,增补视图不是强制要求的,他们的使用和位置受控于布局对象。
Unlike cells, supplementary views are not mandatory, and their usage and placement is controlled by the layout object being used.
布局对象通过计算区域来一次性布局所有的视图和单元格,并为所有的视图选好合适的位置。
To compute the area, the layout object places views and cells one at a time, choosing the most appropriate location for each.
在这个流布局中,单元格和增补视图的大小被指定为属性,不管是在布局对象,或者是代理。
In the case of the flow layout, the size of the cells and supplementary views are specified as properties, either on the layout object or by using a delegate.
装饰视图是完全受控于布局对象的诗句装饰,和你的数据源对象里面的任何数据都没有关系。
Decoration views are visual adornments that are wholly owned by the layout object and are not tied to any data in your data source object.
于是呢,你提供的数据信息,布局对象提供的位置信息,由集合视图综合起来实现最终的展示效果。
Thus, you provide the data, the layout object provides the placement information, and the collection view merges the two pieces together to achieve the final appearance.
尽管你的数据源支持视图和实际内容,布局对象决定了视图的大小,位置,和其他视图的布局相关的属性。
Although your data source object provides the views and the actual content, the layout object determines the size, location, and other appearance-related attributes of those views.
尽管通常情况下自定义布局并不需要大量代码,但是你越理解布局是怎样工作的,你设计的布局对象就越有效。
Even though designing a custom layout does not typically require a large amount of code, the more you understand how layouts work, the better you can design your layout objects to be efficient.
通常情况下,你可以使用流动布局对象来实现网格(由行列元素组成),但是流动布局对象支持任何类型的流线型布局。
You typically use the flow layout object to implement grids-that is, rows and columns of items-but the flow layout supports any type of linear flow.
布局对象可以指定其他的视图相关属性,比如它的透明度,它在3d空间的变化,它的能见度(如果有的话)高于或者低于其他视图。
The layout object can specify other view-related attributes, such as its transparency, its transform in 3d space, and its visibility (if any) above or below other views.
作者可以描述多媒体表示的定时、将超链接与媒体对象关联以及定义屏幕表示的布局。
Authors can describe the timing of multimedia presentations, associate hyperlinks with media objects and define the layout of the presentation onscreen.
这个布局将包含在这个对象布局列表中。
The layout will be included in the list of layouts for this object.
图1表示了对象布局,显示了ecs类的容器关系。
Figure 1 represents the object layout, showing the ECS classes' container relationship.
数据模型将定义对象结构、布局和有效值。
The data model will define the object structure plus layout and valid values.
图1显示了对象在堆上的布局。
在writeHeader() 中,您将看到如何描述页面布局以及如何将页眉和页脚内容定义为静态对象。
In writeHeader() you will see how to describe page layout and how to define header and footer content as static objects.
View对象是一个数据体,它的属性存储了用于屏幕上一块矩形区域的布局参数及内容。
A View object is a data structure whose properties store the layout parameters and content for a specific rectangular area of the screen.
应用推荐