title: collectionViewLayout.collectionViewContentSize returning wrong value?
body: <p>I subclassed <code>UICollectionView</code> class and adjusted the height of the collection view. I used this code:</p>
  
  <pre><code>- (CGSize) intrinsicContentSize{
      return self.collectionViewLayout.collectionViewContentSize;
  }
  </code></pre>
  
  <p>But it always returns the wrong height for the content size. I tried logging the frame values after which I found that it was returning the height of frame rather than that of content.</p>
  
  <p><a href="https://i.stack.imgur.com/23ANS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/23ANS.png" alt="enter image description here"></a></p>
  
  <p>In this case, content size is : (296, 188).
                frame size is.  : (296, 174).</p>
  
  <p>Please let me know what I am missing, thanks.</p>