UICollectionViewの基本的な使い方をまとめたサンプルコードです。 対象者は、UITableViewを使ったことがあるくらいです。
- UICollectionView をStoryboardで作成する
- UICollectionReusableView の基本的な使い方
- UICollectionViewCell の基本的な使い方
- JSONのシニアライズ (JSONファイルをNSDictionaryへ格納する)
- JSONExport を使用した、データ管理
- データソート
- 画面遷移と、データの受け渡し
- UIImageView で画像を表示する
- UILabel で文字を表示する
MIT Licenseの下、自由に使用して頂いて構いません。 但し外部ソース・リソース等はそれらに準拠してください。
- 天気情報のモデルクラス:JSONExport
- 天気画像・JSONファイル:Weather Hacks
- Objective-C:CollectionView-Sample
- Swift:CollectionView-Sample-Swift