I would like to scroll the UICollectionView to the bottom so the last item is in the view. I have tried to use scrollToItemAtIndexPath but it does not seem to be working. I want
Update for Swift 3
func viewScrollButton() { let lastItem = collectionView(self.collectionView!, numberOfRowsInSection: 0) - 1 let indexPath: NSIndexPath = NSIndexPath.init(item: lastItem, section: 0) self.collectionView.scrollToRow(at: indexPath as IndexPath, at: .bottom, animated: false) }