您的位置:首页 > 产品设计 > UI/UE

第9月第7天 uicollectionview

2017-06-07 15:39 225 查看
1.

/**
The margins used to lay out content in the section controller.

@see `-[UICollectionViewFlowLayout sectionInset]`.
*/
open var inset: UIEdgeInsets

/**
The minimum spacing to use between rows of items.

@see `-[UICollectionViewFlowLayout minimumLineSpacing]`.
*/
open var minimumLineSpacing: CGFloat

/**
The minimum spacing to use between items in the same row.

@see `-[UICollectionViewFlowLayout minimumInteritemSpacing]`.
*/
open var minimumInteritemSpacing: CGFloat

/**
Asks the SupplementaryViewSource for a configured supplementary view for the specified kind and index.

@param elementKind The kind of supplementary view being requested
@param index The index for the supplementary veiw being requested.

@note This is your opportunity to do any supplementary view setup and configuration.

@warning You should never allocate new views in this method. Instead deque a view from the `IGListCollectionContext`.
*/
@available(iOS 6.0, *)
public func viewForSupplementaryElement(ofKind elementKind: String, at index: Int) -> UICollectionReusableView

/**
Asks the SupplementaryViewSource for the size of a supplementary view for the given kind and index path.

@param elementKind The kind of supplementary view.
@param index The index of the requested view.

@return The size for the supplementary view.
*/
public func sizeForSupplementaryView(ofKind elementKind: String, at index: Int) -> CGSize

https://www.github.com/Instagram/IGListKit/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: