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
70
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
940
From Taiwan to Silicon Valley
syshen
0
53
Xing's shareing in Evernote Taiwan Meetup
syshen
0
36
簡單學會 iOS 開發
syshen
3
360
Other Decks in Programming
See All in Programming
StreamlitとTerraformでデータカタログを作った話
gussan0223
0
300
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
3
390
AWS Application Composerで始める、 サーバーレスなデータ基盤構築 / 20240406-jawsug-hokuriku-shinkansen
kasacchiful
1
250
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.7k
Ruby GitHub Packages
bkuhlmann
0
620
Git Rebase
bkuhlmann
11
1.6k
Tailwind CSSを本気でカスタマイズする方法
fsubal
2
280
コーンフレークから始める モデリング会話入門
ogurotakayuki
0
280
VSCodeでのDatabricks開発もお勧めしたい/I would also recommend Databricks development with VSCode.
kazumain
0
240
Site Reliability Engineering for GMO
pyama86
6
940
受託開発でGitLab CI を活用していく
xiombatsg
1
270
オブジェクト指向のリ・オリエンテーション~歴史を振り返り、AI時代に向きなおる~
hanyudaeiiti
10
5.6k
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
115
18k
Fantastic passwords and where to find them - at NoRuKo
philnash
36
2.5k
Large-scale JavaScript Application Architecture
addyosmani
503
110k
How to name files
jennybc
64
92k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
29
6k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
658
120k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
6
990
Ruby is Unlike a Banana
tanoku
96
10k
Fireside Chat
paigeccino
20
2.6k
Designing with Data
zakiwarfel
95
4.8k
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