Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UICollectionView in a UICollectionViewCell

I am interested in having a collectionview as a part of a collection view cell but for some reason cannot figure out how this would be done. Where would I implement the necessary methods for the cells collectionview?

like image 768
Patrick Wilson Avatar asked Jul 18 '13 16:07

Patrick Wilson


People also ask

What is a UICollectionView?

An object that manages an ordered collection of data items and presents them using customizable layouts.

What is the difference between Uitableview and UICollectionView?

Tableiw is a simple list, which displays single-dimensional rows of data. It's smooth because of cell reuse and other magic. 2. UICollectionView is the model for displaying multidimensional data .

How does swift implement UICollectionView?

Add a CollectionView by pressing command shift L to open the storyboard widget window. Drag the collectionView onto the main view controller. Add constraints to the UICollectionView widget to ensure that the widget fills the screen on all devices. The foundation is now set up in the storyboard.


1 Answers

There's an article that Ash Furrow wrote that explains how to put an UICollectionView inside an UITableViewCell. It's basically the same idea when using it inside an UICollectionViewCell.

like image 173
Marcelo Fabri Avatar answered Oct 16 '22 04:10

Marcelo Fabri