Setting size of UICollectionViewCell in a way that there is no interim spacing in between
问题 I'm using an UICollectionView on which I want to place seven cells side by side. The whole screen should be used for this. Currently, I'm using the width of the collection view and divide it by seven. Now I get an item width of 45.71429 on an iPhone 4. Between some cells there is an interim spacing. How can I handle this? I want to fill out the whole screen and all items should have the same size. One option which comes to my mind is to round the value and use the remaining value as inset.