UICollectionViewクラス
行、列でアイテムを配置して表示できるビュー
継承 | UIScrollView : UIView : UIResponder : NSObject |
準拠 | NSCoding (UIScrollView) |
NSCoding (UIView) | |
UIAppearance (UIView) | |
UIAppearanceContainer (UIView) | |
NSObject (NSObject) | |
フレームワーク | /System/Library/Frameworks/UIKit.framework |
使用可能 | iOS 6.0以降 |
定義 | UICollectionView.h |
概要
行、列でアイテムを配置して表示できるビュー
メソッドとプロパティ
コレクションビューの初期化
コレクションビューの設定
collectionViewLayout property
– setCollectionViewLayout:animated:
delegate property
dataSource property
backgroundView property
コレクションビューセルの作成
– registerClass:forCellWithReuseIdentifier:
– registerNib:forCellWithReuseIdentifier:
– registerClass:forSupplementaryViewOfKind:withReuseIdentifier:
– registerNib:forSupplementaryViewOfKind:withReuseIdentifier:
– dequeueReusableCellWithReuseIdentifier:forIndexPath:
– dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:
コレクションビューの状態の取得
セクションの挿入、移動、除去
セクションの管理
allowsSelection property
allowsMultipleSelection property
– indexPathsForSelectedItems
– selectItemAtIndexPath:animated:scrollPosition
– deselectItemAtIndexPath:animated
コレクションビューのアイテムの場所
– indexPathForItemAtPoint
– indexPathsForVisibleItems
– indexPathForCell
– cellForItemAtIndexPath
レイアウト情報の取得
– layoutAttributesForItemAtIndexPath
– layoutAttributesForSupplementaryElementOfKind:atIndexPath
ビューでアイテムのスクロール
コレクションビューの同時の変更
フレームワーク
UIKit
クラス
UICollectionView