Top "Uicollectionviewlayout" questions

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

Adding padding to first and last cell of UICollectionView

I have subclassed UICollectionViewFlowLayout to get horizontal UICollectionView with paging like behavior. It works perfectly fine as long as UICollectionViewCell …

ios objective-c uicollectionview uicollectionviewcell uicollectionviewlayout
Can't get UICollectionView to display cells

I'm trying to get a UICollectionView to display inside a modally presented view controller. The app is for iPad iOS 7. …

ios ipad uicollectionview uicollectionviewcell uicollectionviewlayout
UICollectionView special horizontal flow - multiple sections

I have a UICollectionView there is used differently depending on device orientation. The image describe what I have and what …

objective-c ipad uicollectionview uicollectionviewlayout
UICollectionView Cell Overlap

I have a horizontal UICollectionView. I want to make the cells overlap each other by a certain amount of 60 pixels …

iphone ios uicollectionview uicollectionviewcell uicollectionviewlayout
Animate UICollectionView cell size change and reposition surrounding cells

Goal: To animate the change of a cell's height and reposition surrounding cells. Scenario: Some cells in a collection view …

objective-c ios7 uicollectionview uicollectionviewcell uicollectionviewlayout
UICollectionView performBatchUpdates: animates all sections

I'm writing a custom UICollectionViewFlowLayout and I've noticed that initialLayoutAttributesForAppearingItemAtIndexPath: and initialLayoutAttributesForAppearingDecorationElementOfKind:atIndexPath: will be called for all sections when …

objective-c ios6 uikit uicollectionview uicollectionviewlayout
iOS UICollectionView - default flow, fill rows from right to left

I'm using in one of my apps UICollectionView, with custom cells but with default flow. Currently this view shows 3 cells …

ios iphone objective-c uicollectionview uicollectionviewlayout
UICollectionViewFlowLayout estimatedItemSize does not work properly with iOS12 though it works fine with iOS 11.*

For UICollectionView's dynamic height cells we use, if let layout = self.collectionViewLayout as? UICollectionViewFlowLayout { layout.estimatedItemSize = UICollectionViewFlowLayoutAutomaticSize } with the proper …

swift uicollectionview uicollectionviewlayout ios12 uicollectionviewflowlayout
UICollectionView Header and Footer View

I'm using a UICollectionView and need a global header and footer together with section headers. Both global header and footer …

ios uikit uicollectionview uicollectionviewlayout
Proper way to invalidate collection view layout upon size change

I'm implementing a collection view whose items are sized based on the bounds of the collection view. Therefore when the …

ios uicollectionview uicollectionviewlayout