Top "Uicollectionviewlayout" questions

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

iOS 10 bug: UICollectionView received layout attributes for a cell with an index path that does not exist

Running my app in a device with iOS 10 I get this error: UICollectionView received layout attributes for a cell with …

ios uicollectionview ios10 uicollectionviewlayout
Animate frame and layout change of UICollectionView

I am trying to create an effect where I change the layout of my UICollectionView while changing the frame size …

ios uicollectionview uiviewanimation uicollectionviewlayout
UICollectionViewFlowLayout not invalidating right on orientation change

i have a UICollectionView with a UICollectionViewFlowLayout. I also implement the UICollectionViewDelegateFlowLayout protocol. In my datasource i have a bunch …

ios uicollectionview uicollectionviewlayout
UICollectionView wrong contentSize on first load, correct after that

I have a common UICollectionView with paging and all. Still trying to figure out why on viewDidLoad:, viewWillAppear: and viewDidAppear: , …

objective-c uicollectionview uicollectionviewlayout
UICollectionView horizontal paging - can I use Flow Layout?

This is related to but distinct from To use Flow Layout, or to Customize?. Here is an illustration of what …

ios uikit uicollectionview uicollectionviewlayout
Unable to change background color on UICollectionView (iOS)

I'm writing my first iOS app and I seam to be having some problems in changing the backgroundColor of a …

ios uicollectionview uicollectionviewlayout uibackgroundcolor
Assertion Failure in UICollectionViewData validateLayoutInRect on ios7

Assertion Failure in UICollectionViewData validateLayoutInRect on iOS7. I am trying to delete all UICollectionView items, one by one, using a …

ios objective-c ios7 xcode5 uicollectionviewlayout
Using Invalidation Contexts for UICollectionViewLayout

So I have implemented working sticky headers in my UICollectionView in part by returning YES from shouldInvalidateLayoutForBoundsChange:. However, this impacts …

ios cocoa-touch uicollectionview uicollectionviewlayout
UICollectionView horizontal paging with space between pages

I'm looking for a way to replace the native UIPageViewController horizontal paging with a UICollectionView. so far i did the …

ios uicollectionview uikit uipageviewcontroller uicollectionviewlayout
UICollectionView interactive layout transition using iOS 7 APIs

I'm trying to get a handle on new iOS 7 APIs that allow for interactive, animated view controller transitions, including transitions …

iphone ios cocoa-touch uicollectionview uicollectionviewlayout