Im trying to preselect the first object/UICollectionViewCell in the UICollectionView? I have tried:
self.dateCollectionView.allowsMultipleSelection=NO; [self.da
For Swift 3:
override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) //auto selected 1st item let indexPathForFirstRow = IndexPath(row: 0, section: 0) self.collectionView?.selectItem(at: indexPathForFirstRow, animated: true, scrollPosition: .top) }