UICollectionView isn't scrolling to indexPath
问题 I have a UICollectionView that I set the translatesAutoresizingMaskIntoConstraints to NO , and added some constraints . When I try scrolling it to an indexPath : [self.datesCollectionView selectItemAtIndexPath:selectedCellIndexPath animated:YES scrollPosition:UICollectionViewScrollPositionCenteredHorizontally]; Then it completely ignores that, and doesn't scroll. But when I remove translatesAutoresizingMaskIntoConstraints , then it scrolls, but the constraints are ignored. My question is, How