ikeh1024のブログ

ZennやQiitaに書くにはちょっと小粒なネタをこちらに書いています

UICollectionViewを触ってみる

UICollectionView Tutorial: Getting Started

OverView

  • この記事では基本的な実装のみ

GitHub

Supplement

a collection view is a UIScrollView subclass.

-w430

  • チュートリアルEstimate SizeNoneにする、が抜けているので補足しておくこと。

-w1290

UICollectionView Tutorial: Reusable Views, Selection and Reordering

OverView

  • ちょっと発展的な内容
  • 選択とかドラッグ・アンド・ドロップとか

GitHub

Supplement

you’ll use UICollectionReusableView.

This class is similar to UICollectionViewCell, except it usually displays headers and footers.

  • Tips: Command-Shift-LでStoryboardにおいてライブラリを表示できる