UICollectionViewLayoutクラス
コレクションビューをレイアウトするためのクラス
継承 | NSObject |
準拠 | NSCoding |
NSObject (NSObject) | |
フレームワーク | /System/Library/Frameworks/UIKit.framework |
使用可能 | iOS 6.0以降 |
定義 | UICollectionViewLayout.h |
概要
コレクションビューをレイアウトするためのクラス
抽象クラス
メソッドとプロパティ
コレクションビュー情報の取得
レイアウト属性の提供
+ layoutAttributesClass
– prepareLayout
– layoutAttributesForElementsInRect:
– layoutAttributesForItemAtIndexPath:
– layoutAttributesForSupplementaryViewOfKind:atIndexPath:
– layoutAttributesForDecorationViewOfKind:atIndexPath:
– targetContentOffsetForProposedContentOffset:withScrollingVelocity:
コレクションビューアップデートへの対応
– prepareForCollectionViewUpdates
– finalizeCollectionViewUpdates
– initialLayoutAttributesForAppearingItemAtIndexPath
– initialLayoutAttributesForAppearingSupplementaryElementOfKind:atIndexPath
– initialLayoutAttributesForAppearingDecorationElementOfKind:atIndexPath
– finalLayoutAttributesForDisappearingItemAtIndexPath
– finalLayoutAttributesForDisappearingSupplementaryElementOfKind:atIndexPath
– finalLayoutAttributesForDisappearingDecorationElementOfKind:atIndexPath
フレームワーク
UIKit
クラス
UICollectionViewLayout