Closed
Description
Hello there,
First of all, thanks a lot for this layout, it really works well on my iPhone 6 device and it is really great to manage the horizontal alignment like that.
However, I'm contacting you today because while using the exact same code on the iPhone 6 Plus simulator, I've got a weird bug where cells overlap. I checked the code of course but can't seem to find what's causing that for this specific device, since it's working great on others. Maybe you had the same issue once and you can help me?
Here's some screenshot of the bug: http://cl.kowaio.me/image/2w1M1b3X3C13
About the code I call, I'm doing it in swift but like I told before, it's working great on other devices. Here's the code:
override func viewDidLoad() {
super.viewDidLoad()
// Update Collection View Flow Layout
let layout = KTCenterFlowLayout()
layout.minimumInteritemSpacing = 20.0
layout.minimumLineSpacing = 10.0
collectionView.collectionViewLayout = layout
}
and
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAtIndex section: Int) -> UIEdgeInsets {
return UIEdgeInsets(top: 10.0, left: 20.0, bottom: 10.0, right: 20.0)
}
Thanks a lot!
My best,
Metadata
Metadata
Assignees
Labels
No labels