title: Tile-like app using UICollectionView
body: <p>I'm trying to build an app that look-like a tile-based app (a bit windows style) and I'm new to UICollectionView.</p>
  
  <p>This is what I'm trying to achieve : </p>
  
  <p><a href="https://i.stack.imgur.com/8JBjA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8JBjA.png" alt="enter image description here"></a></p>
  
  <p>The idea is that today, I know that I have 6 icons to display in each of these cells. But tomorrow could be 8, 10, etc.</p>
  
  <p>So instead of a static 6-imageview-based storyboard, I'd like to have a collection view for its flexibility.</p>
  
  <p>However I could not find how to constrained my cells relatively to the container view. Xcode only lets me specify a fixed point-based size. Furthermore, even if I play with the minimum spacing between cells, I observe gaps for a value of 0.</p>
  
  <p>What I've done so far : </p>
  
  <ul>
  <li>created a UICollectionViewController in storyboard</li>
  <li>created a small custom class to handle my cells (basically an outlet for the image view inside and a label)</li>
  <li>I let the properties "item" and "layout" values to respectively "1" and "Flow" in the UICollectionView Attributes inspector (I have a reusable identifier)</li>
  </ul>
  
  <p>Can someone help on this ?</p>