Top "Uicollectionview" questions

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

UICollectionView does not scroll

I have a UICollectionView set up with a UICollectionViewDataSource that currently provides six items. These are fewer than needed to …

iphone ios uicollectionview
UICollectionView flowLayout not wrapping cells correctly

I have a UICollectionView with a FLowLayout. It will work as I expect most of the time, but every now …

ios ios6 uicollectionview uicollectionviewcell
Change Background of UICollectionView Cell on Tap

I have a UICollectionView that I have created programmatically. I would like for the collection view to behave in the …

ios objective-c uicollectionview uicollectionviewcell uicollectionviewdelegate
How do I define the size of a CollectionView on rotate

I have a viewcontroller with 2 CollectionView Controllers. I would like on rotation that only one of the collection views resize …

ios objective-c xcode uicollectionview
UICollectionView only calling didSelectItemAtIndexPath if user double taps, will not call when user single taps

I have a UICollectionView which is about the size of the screen. The UICollectionViewCells that it displays are the same …

ios objective-c ipad uicollectionview uicollectionviewcell
how to get indexPath for cell which is located in the center of UICollectionView

How can i find indexPath for cell in the middle of UICollectionView? I have horizontal scrolling and only one big …

ios uicollectionview uicollectionviewcell
UICollectionVIew : How can i remove the space on top first cell's row

I have this arrangement in Interface Builder, All properties are set to zero. However, when I run it on both …

ios uicollectionview uicollectionviewlayout
UICollectionView adds top margin

I want to put a UICollectionView control that shows thumbs horizontally (only a single line of thumbs). For some reason …

ios7 uicollectionview
How to resize the collection view cells according to device screen size?

I noticed that the cells would always follow the definition in size inspector. Even if I have already applied UICollectionViewDelegateFlowLayout. …

ios uicollectionview ios10
Snap to center of a cell when scrolling UICollectionView horizontally

I know some people have asked this question before but they were all about UITableViews or UIScrollViews and I couldn't …

ios objective-c uiscrollview uicollectionview