Display images in a UICollectionView - how to achieve fixed vertical spacing between images?
- 阅读更多 关于 Display images in a UICollectionView - how to achieve fixed vertical spacing between images?
问题 I am using a UICollectionView to present a grid of images in an iPhone app (iOS6). I am using vertical scrolling for the UICollectionView, and the images all have fixed width and varying height. The width of the images are set so that on an iPhone, it displays 3 columns of images. This works ok, and I get the images presented in a grid view. However, since my images have varying height, the vertical spacing between images in a column varies and this doesn't look very good, as you can see in