iOS13 UICollectionView 不考虑单元格的委托方法中返回的大小

iOS13 UICollectionView not respecting size returned in delegate method for cell

在iOS13中,我return

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
   return collectionView.bounds.size
}

但是显示的单元格是水平拥抱的,而不是全宽的...以前没有发生过这种情况

是否有任何变化是负责任的?为什么会这样?

在界面生成器中,将估计大小从 'Automatic'

设置为 'None'