Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
UICollectionView
Ash Furrow
December 21, 2013
Technology
1
220
UICollectionView
Talk I did for TACOW on the basics of UICollectionView.
Ash Furrow
December 21, 2013
Tweet
Share
More Decks by Ash Furrow
See All by Ash Furrow
Migrating to React Native: A Long-Term Retrospective
ashfurrow
0
87
How Artsy Automates Team Culture
ashfurrow
0
2k
Building Custom TSLint Rules
ashfurrow
0
170
Circumventing Fear of the Unknown
ashfurrow
1
230
Building Better Software by Building Better Teams
ashfurrow
1
300
Building Open Source Communities
ashfurrow
0
370
Comparative Asynchronous Programming
ashfurrow
2
8.4k
Building Compassionate Software
ashfurrow
0
190
Swift, Briskly
ashfurrow
0
82
Other Decks in Technology
See All in Technology
セキュリティ 開運研修2022 / security 2022
cybozuinsideout
PRO
3
3.5k
Security Hub のマルチアカウント 管理・運用をサーバレスでやってみる
ch6noota
0
740
ログ基盤をCloudWatchLogからNewRelic Logs + S3に変えたら 利便性も上がってコストも下がった話
onohiroshi1
0
170
ソフトウェアテスト 2022 / Software Testing 2022
ak1210
1
1.7k
要約 "Add Live Text interaction to your app"
ushisantoasobu
0
140
越境チャレンジの現在地 〜Epic大臣制度の今〜
yousak
0
840
ウォーターフォールとアジャイルと楽楽明細/Waterfall×Agile×Rakurakumeisai
whitefox_73
1
350
サイボウズの アジャイル・クオリティ / Agile Quality at Cybozu
cybozuinsideout
PRO
4
2.1k
Custom AppをIP制限ありのままで審査に通す方法
yusuga
0
590
Modern Android dependency injection
hugovisser
1
120
JUnit5.7, 5.8の新機能紹介 #jjug_ccc #jjug_ccc_b / junit 5.7, 5.8 new features
kyonmm
PRO
2
410
PUTとPOSTどっち使う?
hankehly
0
180
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
104
16k
Build your cross-platform service in a week with App Engine
jlugia
219
17k
A Philosophy of Restraint
colly
192
15k
The Mythical Team-Month
searls
209
39k
Agile that works and the tools we love
rasmusluckow
319
19k
Visualization
eitanlees
124
11k
Designing Experiences People Love
moore
130
22k
The Brand Is Dead. Long Live the Brand.
mthomps
46
2.7k
Documentation Writing (for coders)
carmenhchung
48
2.5k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
15k
Clear Off the Table
cherdarchuk
79
280k
What the flash - Photography Introduction
edds
61
10k
Transcript
UICollectionView Ash Furrow, Teehan+Lax
None
1.UICollectionView is just like UITableView 2.UICollectionView separates layout from display
3.UICollectionView makes complex layouts easy
UICollectionView is just like UITableView... ! Except a little different.
UITableView • UITableView is one of the mainstays of iOS
• UICollectionView will be one for iOS 7
Dequeuing Cells • UICollectionView works just like newer UITableView APIs
• Register a class for a cell identifier • Later, dequeue a cell of that class for that identifier
Demo
UICollectionViewFlowLayoutDelegate • UICollectionView queries its delegate for info • Used
to layout cells • Just like UITableViewDelegate
Demo
UICollectionView separates concerns. ! Layout, dequeuing, display
UICollectionView Layouts • UICollectionView separates layout from dequeuing logic •
UITableView encapsulates both • Allows us to easily customize layout of cells
Demo
Custom Layout Attributes • We can even define our own
layout attributes
Demo
UICollectionView makes complex layouts easy... ! Or at least possible.
UICollectionViewFlowLayout • Flow layouts provide a lot for you •
Always try customizing them first
UICollectionViewLayout • UICollectionViewLayout is an abstract class • Subclass it
to go Hands On™ • Makes complex layouts easy
Demo
1.UICollectionView is just like UITableView 2.UICollectionView separates layout from display
3.UICollectionView makes complex layouts easy
None
Go buy my book
Ash Furrow @ashfurrow Thanks!