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
なぜあなたのオブザーバビリティ導入は頓挫するのか
ryota_hnk
0
350
中級グラフィックス入門~効率的なメッシュレット描画~
projectasura
2
1.2k
The Modern View Layer Rails Deserves: A Vision For 2025 And Beyond @ RailsConf 2025, Philadelphia, PA
marcoroth
2
780
抽象化という思考のツール - 理解と活用 - / Abstraction-as-a-Tool-for-Thinking
shin1x1
1
240
状態遷移図を書こう / Sequence Chart vs State Diagram
orgachem
PRO
2
250
DMMを支える決済基盤の技術的負債にどう立ち向かうか / Addressing Technical Debt in Payment Infrastructure
yoshiyoshifujii
4
580
フロントエンドのパフォーマンスチューニング
koukimiura
6
2.3k
脱Riverpod?fqueryで考える、TanStack Queryライクなアーキテクチャの可能性
ostk0069
0
560
テスト駆動Kaggle
isax1015
1
870
コーディングエージェント概観(2025/07)
itsuki_t88
0
130
TypeScriptでDXを上げろ! Hono編
yusukebe
3
860
Gemini CLIの"強み"を知る! Gemini CLIとClaude Codeを比較してみた!
kotahisafuru
2
140
Featured
See All Featured
A better future with KSS
kneath
238
17k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Fireside Chat
paigeccino
37
3.5k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
108
19k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Building an army of robots
kneath
306
45k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
4 Signs Your Business is Dying
shpigford
184
22k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Code Reviewing Like a Champion
maltzj
524
40k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
990
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