Class
NSCollectionLayoutItem
The most basic component of a collection view's layout.
--collection view最常用的布局基础组件,也是collection view的合成布局中的常用组件
Declaration
class NSCollectionLayoutItem : NSObject
Overview --概览
An item is a blueprint for how to size, space, and arrange an individual piece of content in your collection view. An item represents a single view that's rendered onscreen. Generally, an item is a cell, but items can be supplementary views like headers, footers, and other decorations.
--item是一个蓝图,用于说明在collection view内容中的每一个小部分的大小、空间和排列该如何调整。一个item表示在屏幕上呈现的单个视图。通常,item是单元格,不同的是,item也可以是补充视图,如页眉、页脚和其他装饰。
For example, in the Photos app, an item might represent a single photo. In the App Store app, an item might be a cell displaying information about an individual app in a list of featured apps, such as the app icon, app name, tagline, and download button.
--例如,在Photos app中,一个item可能代表一张照片。在App Store app中,item可能是一个单元格,在app 列表中显示有关某个app的信息,如app的图标