I want to remove cell spacing of UICollectionView in our application. I use many code for removing space but they are not working. Please provide me the code also.
Thanks.
Home / DeveloperSection / Forums / How to remove cell spacing in UICollectionView in iOS?
I want to remove cell spacing of UICollectionView in our application. I use many code for removing space but they are not working. Please provide me the code also.
Thanks.
Tarun Kumar
29-Dec-2015If you want to remove cell spacing in UICollectionView, then you need to set cell paddings. and collectionView provide some important methods to handle spacing are insetForSectionAtIndex: , minimumLineSpacingForSectionAtIndex: and minimumInteritemSpacingForSectionAtIndex: .
Here are the examples: