Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
A lightning talk about UICollectionView
Search
Steven Shen
December 13, 2012
Programming
1
93
A lightning talk about UICollectionView
Steven Shen
December 13, 2012
Tweet
Share
More Decks by Steven Shen
See All by Steven Shen
Travis and Fastlane
syshen
3
950
From Taiwan to Silicon Valley
syshen
0
70
Xing's shareing in Evernote Taiwan Meetup
syshen
0
46
簡單學會 iOS 開發
syshen
3
370
Other Decks in Programming
See All in Programming
構文解析器入門
ydah
7
1.9k
DMMを支える決済基盤の技術的負債にどう立ち向かうか / Addressing Technical Debt in Payment Infrastructure
yoshiyoshifujii
4
610
顧客の画像データをテラバイト単位で配信する 画像サーバを WebP にした際に起こった課題と その対応策 ~継続的な取り組みを添えて~
takutakahashi
4
1.4k
Yes, You Can Work on Rails & any other Gem
kaspth
0
110
11年かかって やっとVibe Codingに 時代が追いつきましたね
yimajo
0
150
Google I/O Extended Incheon 2025 ~ What's new in Android development tools
pluu
1
160
リッチエディターを安全に開発・運用するために
unachang113
1
240
AI Ramen Fight
yusukebe
0
110
What's new in AppKit on macOS 26
1024jp
0
170
ISUCON研修おかわり会 講義スライド
arfes0e2b3c
1
480
脱Riverpod?fqueryで考える、TanStack Queryライクなアーキテクチャの可能性
ostk0069
0
560
The Modern View Layer Rails Deserves: A Vision For 2025 And Beyond @ RailsConf 2025, Philadelphia, PA
marcoroth
2
790
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.8k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
It's Worth the Effort
3n
185
28k
Navigating Team Friction
lara
187
15k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Become a Pro
speakerdeck
PRO
29
5.4k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.6k
Being A Developer After 40
akosma
90
590k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
48
2.9k
Transcript
Friday, December 14, 12
Auto-Layout Friday, December 14, 12
Auto-Layout UILabel Attributed String Friday, December 14, 12
Auto-Layout UILabel Attributed String UICollectionView Friday, December 14, 12
Friday, December 14, 12
Friday, December 14, 12
Cell Friday, December 14, 12
Cell Layout Friday, December 14, 12
Cell Header Layout Friday, December 14, 12
Cell Header Decoration Layout Friday, December 14, 12
UICollectionView UICollectionViewLayout UICollectionViewCell Friday, December 14, 12
Friday, December 14, 12
• registerClass:forCellWithReuseIdentifier: • registerNib:forCellWithReuseIdentifier: • registerClass:forSupplementaryViewOfKind:withR euseIdentifier: • registerNib:forSupplementaryViewOfKind:withRe useIdentifier:
Friday, December 14, 12
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithIdentifier:identifier]; if (!cell) { cell =
[[UICollectionViewCell alloc] init]; } Friday, December 14, 12
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithIdentifier:identifier]; if (!cell) { cell =
[[UICollectionViewCell alloc] init]; } UICollectionViewCell *cell = [collectionView dequeueReusableCellWithIdentifier:identifier forIndexPath:indexPath]; Friday, December 14, 12
Friday, December 14, 12
Friday, December 14, 12
• UICollectionViewFlowLayout is powerful but limited • Fixed direction: horizontal
or vertical Friday, December 14, 12
Create New Layout Friday, December 14, 12
Order of Operations - prepareLayout - collectionViewContentSize - layoutAttributesForElementsInRect Friday,
December 14, 12
Friday, December 14, 12
Friday, December 14, 12
Friday, December 14, 12
Friday, December 14, 12
Friday, December 14, 12
Friday, December 14, 12
Friday, December 14, 12
Friday, December 14, 12
• https://github.com/syshen/YACV • WWDC 2012 UICollectionView related sessions • https://github.com/mpospese/
IntroducingCollectionViews Friday, December 14, 12
Friday, December 14, 12