title: UICollectionView: How to define a UICollectionViewLayout that supports horizontally and vertically scrolling?
body: <p>At the moment I'm trying to create an <code>UICollectionView</code>, that should display a simple <code>excel-like-spreadsheet</code>, with <code>rows</code> and <code>columns</code>. This should be an easy task with <code>UICollectionViews</code>, I believed. And I really would like to do the implementation in <code>UICollectionView</code>, not in any <code>grid framework</code>.</p>
  
  <p>But at the moment I'm hanging a little bit. What I've figured out is, that I unfortunately can't use a <code>UICollectionViewDelegateFlowLayout</code>, because this only supports <code>scrolling</code> in <strong>either</strong> <code>horizontally</code> or <code>vertically</code> direction. But I need <code>scrolling</code> in both directions.</p>
  
  <p>Therefore <strong>I have to use a <code>UICollectionViewLayout</code></strong>, but for this I didn't find good examples, how to use it. Has anyone of you an example, how to subclass an <code>UICollectionViewLayout</code> to support <code>rows</code> and <code>columns</code>?</p>
  
  <p>Thanks in advance.</p>