O'Reilly logo

iOS UICollectionView: The Complete Guide by Ash Furrow

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2. Displaying Content Using UICollectionView

Now that you have an understanding about how collection views fit within an iOS app using the Model-View-Control (MVC) paradigm, it’s time to get to the good stuff: code. This chapter starts off easy and shows how you can use Storyboards or .xibs to set up collection views, and then it shows you how to set them up in code. UICollectionView subclasses UIScrollView, so the chapter takes a brief detour to see how you can use that to your advantage with UIScrollViewDelegate. You begin customizing actual content to show to your users using cell reuse before finishing off with a case study on performance.

Setting Up Using Code and Storyboards

Traditionally, .xib files were used to lay out interface code ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required