I have a UICollectionView with two section. In first, it has UIPageControl and in second simple UICollectionView.
Between first and second element it has spacing, can you suggest me how to remove that?
Platform iOS 9.*, Swift 3
I have a UICollectionView with two section. In first, it has UIPageControl and in second simple UICollectionView.
Between first and second element it has spacing, can you suggest me how to remove that?
Platform iOS 9.*, Swift 3
You can specify the UIEdgeInsets of the collection view to solve this problem
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
return UIEdgeInsetsMake(0, 0, 0, 0)
}