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
91
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
69
Xing's shareing in Evernote Taiwan Meetup
syshen
0
45
簡單學會 iOS 開發
syshen
3
370
Other Decks in Programming
See All in Programming
XP, Testing and ninja testing
m_seki
3
180
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
2
490
なんとなくわかった気になるブロックテーマ入門/contents.nagoya 2025 6.28
chiilog
1
190
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
160
iOSアプリ開発で 関数型プログラミングを実現する The Composable Architectureの紹介
yimajo
2
210
イベントストーミング図からコードへの変換手順 / Procedure for Converting Event Storming Diagrams to Code
nrslib
1
340
A2A プロトコルを試してみる
azukiazusa1
2
1.1k
AIコーディング道場勉強会#2 君(エンジニア)たちはどう生きるか
misakiotb
1
250
ReadMoreTextView
fornewid
1
480
C++20 射影変換
faithandbrave
0
530
つよそうにふるまい、つよい成果を出すのなら、つよいのかもしれない
irof
1
300
今ならAmazon ECSのサービス間通信をどう選ぶか / Selection of ECS Interservice Communication 2025
tkikuc
19
3.5k
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.4k
Balancing Empowerment & Direction
lara
1
370
Agile that works and the tools we love
rasmusluckow
329
21k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
33
5.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
Statistics for Hackers
jakevdp
799
220k
Being A Developer After 40
akosma
90
590k
How STYLIGHT went responsive
nonsquared
100
5.6k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
Docker and Python
trallard
44
3.4k
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