title: Autolayout scrollview with collectionview
body: <p>I have been struggling with this for a few days now, and I am looking to see if someone can help me with this AutoLayout problem.</p>
  
  <p>In my iOS7 application, I have a <code>UIView</code> that has a <code>UIScrollView</code> and inside it a <code>UIView</code>(container) with some elements positioned. I have in there, a <code>UIImageView</code>, <code>UITableView</code>,  <code>UICollectionView</code>, <code>UITextView</code> and a <code>MapView</code>. There is no height constraint on the <code>UIScrollView</code> and the container <code>UIView</code>. There are no height constraints on the <code>UICollectionView</code> and the <code>UITextView</code>. </p>
  
  <p>What I want to accomplish is </p>
  
  <ol>
  <li><p>The <code>UITextview</code> should expand to the content size as in all the text should appear without any vertical scrolling enabled for the <code>UITextView</code>.</p></li>
  <li><p>The <code>UICollectionView</code> should always show all items and there should not be any scrolling enabled there as well.</p></li>
  </ol>
  
  <p>Overall, I want a <code>UIScrollView</code> with items in it, that scale based on content. I have tried numerous things, but failed. 
  If anyone has pointers or suggestions on how to go about doing this, it would be very helpful.</p>