Top "Uicollectionview" questions

The UICollectionView class manages an ordered collection of data items and presents them using customizable layouts.

How to adjust height of UICollectionView to be the height of the content size of the UICollectionView?

I would like the UICollectionView (The red one) to shrink to the height of the content size in this case …

ios swift uicollectionview nslayoutconstraint ios-autolayout
How to make both header and footer in collection view with swift

How to make both header and footer in collection view in swift ? I'm trying to combine a header and a …

ios swift uicollectionview
Dynamic cell width of UICollectionView depending on label width

I have a UICollectionView, that loads cells from reusable cell, which contains label. An array provides content for that label. …

ios objective-c swift uicollectionview uicollectionviewcell
Long press gesture on UICollectionViewCell

I was wondering how to add a long press gesture recognizer to a (subclass of) UICollectionView. I read in the …

ios objective-c uicollectionview
CollectionView Dynamic cell height swift

Im trying to create a collection view with cells displaying string with variable length. Im using this function to set …

layout swift height uicollectionview
Add a simple UIView as header of UICollectionView

I have a UICollectionView. I would like to add a header. My header would only be a UILabel. I've : 1) selected "…

ios header uicollectionview uicollectionreusableview
UICollectionView animate data change

In my Project I use UICollectionView to display a grid of icons. The user is able to change the ordering …

ios uicollectionview
How to determine height of UICollectionView with FlowLayout

I've got an UICollectionView with an UICollectionViewFlowLayout, and i want to calculate its content size (for return in intrinsicContentSize needed …

ios height uicollectionview autolayout
UICollectionView Custom Cell to fill width In Swift

I've been trying to figure-out how can i make the cell fill the width, as you can see in the …

ios swift uicollectionview uicollectionviewlayout
UICollectionView: Animate cell size change on selection

What I want to do is change the size of an UICollectionViewCell, and to animate that change, when the cell …

ios swift uicollectionview