Display just two columns, with multiple rows in a CollectionView using storyboard
问题 I want to display only two cells in a row, no matter what the iPhone screen size is. Like, My storyboard contains a UICollectionView ,connected by constraints. The storyboard settings for the UICollectionView is, Now, when I run this in 6, 5s or below, only one cell appears in a row. The code I'd used is, - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{ return [categoryImages count]; } - (UICollectionViewCell *)collectionView: