Sunday, February 28, 2016

iOS Collection View

This component gives flexibility for showing photos 



1. Grid view 
2. stack view 

extremely customizable, one can use them to make circle layouts, cover-flow style layouts, Pulse news style layouts – almost anything!

Main components of collection view area the ones below 

UICollectionView – the main view in which the content is displayed, similar to a UITableView. Like a table view, a collection view is a UIScrollView subclass.

UICollectionViewCell – similar to a UITableViewCell in a table view. These cells make up the content of the view and are added as subviews to the collection view. Cells can be created programmatically or inside Interface Builder.

Supplementary Views – if you have extra information you need to display that shouldn’t be in the cells but still somewhere within the collection view, you should use supplementary views. These are commonly used for headers or footers.

References:

No comments:

Post a Comment