Your SlideShare is downloading. ×
2013-02-05 UICollectionView
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

2013-02-05 UICollectionView

576
views

Published on

Published in: Technology, Business

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
576
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Awesome UI class ;)UICollectionView
  • 2. AGENDA• Introduction• „Big picture”• UICollectionView architecture, data model & interaction• FlowLayout - basic tool (but powerful)• Live Demo• Questions
  • 3. Łukasz DomaradzkiSoftware Research Engineer @ Jeppesen Polandcontact: lukasz.domaradzki@gmail.comwww: http://about.me/lukasz.domaradzki
  • 4. „BIG PICTURE”
  • 5. DOYOU KNOWOTHER APPS?
  • 6. WHAT EXACTLY IS IT?• UI class, similar to UITableView (not a replacement)• very powerful (customizable)• your UX/graphic designer will love it ;)• available iOS 6.0+ (not only... more later)O’rly?
  • 7. ANATOMYCellsSupplementaryViewsDecorationViewsLet’s dig inside.
  • 8. CELLS• No predefined styles(like in UITableView)• New properties - selection& highlight• New reuse format (improved)[cV registerClass: ...][cV registerNib: ...][cV dequeReusableCell...]UICollectionViewCellBackground ViewSelected BackgroundViewContent View
  • 9. ARCHITECTURE
  • 10. VIEW (FLOW) LAYOUTCSS for your UICollectionView !UICollectionViewLayout is an abstract base class forpositioning cell views and their supplementary and decorationviews. But rather than subclass this directly, most applicationswill opt to use or subclass UICollectionViewFlowLayout.Flow layouts cover the broad class of layouts with some notionof linearity, whether thats a single row or column or a grid.nshipster.com
  • 11. WHAT ABOUT IOS BELOW 6.0?• PSTCollectionViewhttps://github.com/steipete/PSTCollectionView100% API replacement, available from iOS 4.3+
  • 12. You know what time it is?LIVE DEMO!
  • 13. Sources:- WWDC2012- Introducing CollectionViews- Advanced CollectionViews and Building CustomLayouts- NSHipster.com- RayWenderlich.com
  • 14. Questions?Thanks for listening.