title: Dynamic size UICollectionView cell
body: <p><img src="https://i.stack.imgur.com/QnRtn.png" alt="enter image description here"></p>
  
  <p>1) How can i achieve as shown in image with <code>UICollectionView</code>?</p>
  
  <p>2) I've tried <code>-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath</code> method &amp; passed different sizes but it leaves out spaces between cells. Can i empty those spaces? I want different height &amp; width for every cell</p>
  
  <p><strong>Current output:</strong> 
  <img src="https://i.stack.imgur.com/FCeEq.jpg" alt="enter image description here">.</p>