Top "Uicollectionviewlayout" questions

The UICollectionViewLayout class is an abstract base class that is used to generate layout information for a collection view.

Independent scrolling for each section of a UICollectionView?

Is it possible to use UICollectionView to build a layout where each section can be independently scrolled? For example, imagine 20 …

ios ios6 uicollectionview uicollectionviewlayout
UICollectionViewFlowLayout's estimatedItemSize breaks scrolling?

(EDIT : it seems to be working fine starting with iOS 9. I did not make extensive tests, but the example works. …

ios objective-c iphone uicollectionview uicollectionviewlayout
How do you vertically align the UICollectionViewCells in a UICollectionView?

I have cells of varying height on a horizontally scrolling UICollectionView that appears to evenly distribute the cells vertically leaving …

ios uicollectionview uicollectionviewlayout
UICollectionViewFlowLayout vs subclassing UICollectionViewLayout

I know the documented advice is to use UICollectionViewFlowLayout if you are doing anything "like a grid or a line-based …

ios uicollectionview uicollectionviewlayout
Drag and reorder - UICollectionview with sections

Is that possible to do drag and reorder from one section to another section from collectionview - iOS 9. Every time …

swift uicollectionview ios9 xcode7 uicollectionviewlayout
Customising position of header in UICollectionView layout causes NSInternalInconsistencyException error

I am trying to customise the positions of the headers in a UICollectionView using a subclassed UICollectionViewFlowLayout class (based loosely …

ios ios7 uicollectionview uicollectionviewlayout
UICollectionViewFlowLayout minimumInteritemSpacing doesn't work

I've got two problems with my UICollectionView: minimumInteritemSpacing doesn't work it overflows horizontally on iOS 6 I set up the layout …

ios objective-c cocoa-touch uicollectionview uicollectionviewlayout
Custom animation on UICollectionView reload data

I would like to animate the reload of a collection view such that when a cell is selected I get …

ios uicollectionview uiviewanimation caanimation uicollectionviewlayout
UICollectionView contentOffset after device rotation

What I am trying to do: On Apple's Photo's App, if you rotate device while scroll to an arbitrary offset, …

ios swift uiscrollview uicollectionview uicollectionviewlayout
How to fix scrolling to a visible cell in UICollectionView with custom layout?

I'm working on custom value picker inspired by UIPickerView. It looks like that: As you can see, one of the …

ios objective-c uicollectionview custom-component uicollectionviewlayout