Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
A lightning talk about UICollectionView
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Steven Shen
December 13, 2012
Programming
120
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
A lightning talk about UICollectionView
Steven Shen
December 13, 2012
More Decks by Steven Shen
See All by Steven Shen
Travis and Fastlane
syshen
3
970
From Taiwan to Silicon Valley
syshen
0
100
Xing's shareing in Evernote Taiwan Meetup
syshen
0
110
簡單學會 iOS 開發
syshen
3
440
Other Decks in Programming
See All in Programming
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
170
Event is what happens
moro
2
4.1k
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
220
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
2
110
オーケストレーション記述言語 Katari
yukikurage
0
250
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
260
protojson における文字化けの扱い
kazuki1023
0
230
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
640
Seven New Principles of Software Engineering
yegor256
0
470
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.3k
まずはコードより業務と向き合う:テーブル解体のためにPdMを呼んだ話
sakawe_ee
0
190
AI-Powered Domain-Driven Design
ziobrando
0
420
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
320
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
Designing for humans not robots
tammielis
254
26k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
840
Producing Creativity
orderedlist
PRO
348
41k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Site-Speed That Sticks
csswizardry
13
1.6k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
370
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