Top "Uicollectionview" questions

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

UICollectionView - Scrolling to first cell

I'm making use of UICollectionView and I need to scroll to first cell after click in a button. The button …

ios swift xcode6 uicollectionview uicollectionviewcell
Reload UICollectionView header or footer?

I have some data that is fetched in another thread that updates a UICollectionView's header. However, I've not found an …

ios6 uicollectionview
UICollectionView sticky header in swift

I'm trying to create a sticky supplementary header, which stays on top all the time and won't response to scrolling …

ios swift uicollectionview uicollectionviewlayout tvos
contentSize is not updated after reloadData is called on UICollectionView

Does anyone know why contentSize is not updated immediately after reloadData is called on UICollectionView? If you need to know …

ios uicollectionview
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
UICollectionView and SwiftUI?

How to create grid of square items (for example like in iOS Photo Library) with SwiftUI? I tried this approach …

ios uicollectionview swiftui ios13
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
UICollectionView registerClass: forCellWithReuseIdentifier method breaks UICollectionView

What's the role of registerClass:forCellWithReuseIdentifier: method? According to Apple's developer documentation it's supposed to "Register a class for use …

ios objective-c uicollectionview uicollectionviewcell
How can I check if an indexPath is valid, thus avoiding an "attempt to scroll to invalid index path" error?

How can I check to see whether an indexPath is valid or not? I want to scroll to an indexPath, …

ios swift uicollectionview nsindexpath
Getting button action : UICollectionView Cell

I have created a UICollectionViewCell by nib and added a button inside it and created a .h and .m files …

ios ipad uicollectionview uicollectionviewcell