I'm trying to center the first and the last cell of a horizontal collection view.
The only approach i found until now was adding extra cells at the begin and the end of my UICollectionView
. This method was totally a bad idea for obvious reasons but I didn't find a better way to do it for now. And since, with the iPhone 6 and the iPhone 6+, the layout of my view is totally broken... (facepalm)
To illustrate my need I need to display something like this :
| x x x x x| where the first x represent my first cell
and
|x x x x x | where the last x represent my last cell
I think using a UICollectionViewFlowLayout
subclass is the proper way to do that with contentInset
stuff but I'm a total newbie with these components.
Any links or suggestions on how to achieve this ?