UICollectionView not able to scroll to see the entire last row

ios, iphone, objective-c, uicollectionview

Solution

The issue was just adding AutoLayout constraints to the View Controller which housed the `UICollectionView`. To do this, select the View Controller in Storyboards and click on "Editor" on the top. Then, "Resolve Autolayout Issues" > "Reset to Suggested Constraints..."

Problem

I have a UICollectionView with size: `768x1024` with a navbar on top. My custom `UICollectionViewCells` are of size `200x200`. The problem is that when I keep adding cells and I reach the bottom row, I can only see part of the `200x200` cell. It won't let me scroll further before it bounces back up. Any ideas on what the problem could be? EDIT: I add cells via: `insertItemsAtIndexPaths:`

Original source