But, if the last section is pinned to bottom, the collectionview is not able to scroll. If I change frame.origin.y = self.collectionView.contentOffset.y + self.collectionView.frame.size.height - 30;, to frame.origin.y = self.collectionView.contentOffset.y + self.collectionView.frame.size.height + 70;It scrolls little bit downwards until the last section is visible and stops there.
So I used this piece of code, to make the last section stick to the bottom:
But, if the last section is pinned to bottom, the collectionview is not able to scroll. If I change
frame.origin.y = self.collectionView.contentOffset.y + self.collectionView.frame.size.height - 30;
, toframe.origin.y = self.collectionView.contentOffset.y + self.collectionView.frame.size.height + 70;
It scrolls little bit downwards until the last section is visible and stops there.