【发布时间】:2017-03-30 06:21:21
【问题描述】:
我的一个storyboard 有一个表格视图单元格,它调用在单独场景中定义的集合视图。集合视图包括一个带有页面控件的 UIImage 视图,直到 ios 10 每个用于在升级后完全显示在 imageview 中的图像所有图像都显示为彼此堆叠,如附加图像中所示。一旦我点击这个堆叠在我重新访问故事板之前,一切都变得正确。新升级中的 UIImage 或 collectionview 有什么变化吗?
相同的代码在 ipod 中运行良好。
代码示例:
#pragma mark - UICollectionViewDelegateFlowLayout
- (CGSize)collectionView:(UICollectionView *)collectionView
layout:(UICollectionViewLayout *)collectionViewLayout
sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
return collectionView.bounds.size;
}
和使用的pagecontrol有关吗??
【问题讨论】: