title: How to implement non-scrollable UICollectionView inside UIScrollView?
body: <p>In shorts, my desired screen layout is basically a user profile (iOS 7 + Xcode 5). I used UIScrollView as the top level view. <em>The reason is that <strong>I want all its subviews to scroll</strong> (user info view - the view with a profile image and some buttons you see on the screen, and the photos collection view - the one with black background) when it is scrolled.</em></p>
  
  <p><img src="https://i.stack.imgur.com/b1y5S.png" alt="enter image description here"></p>
  
  <p>The region with black background will show user photos. I'm wondering if I could use a UICollectionView here, or there's a better way to implement it. The UICollectionView in this case shouldn't be able to scroll itself, it just shows all cells, while the scrolling work is handled by the outermost UIScrollView.</p>
  
  <p>I read following posts:</p>
  
  <p><a href="https://stackoverflow.com/questions/16224599/uicollectionview-inside-of-uiscrollview">UICollectionView inside of UIScrollView</a></p>
  
  <p><a href="https://stackoverflow.com/questions/23538551/uicollectionview-in-uiscrollview-scroll-order">UICollectionView in UIScrollView -&gt; Scroll Order</a></p>
  
  <p><a href="https://stackoverflow.com/questions/20338466/ios-7-collection-view-inside-scroll-view">iOS 7 Collection View inside Scroll View</a></p>
  
  <p>Some said it's not possible (or at least, weird) implemeting UICollectionView inside UIScrollView because UIScrollView is UICollectionView's superclass which leads to unexpected behaviour. Some said it should be implemented in another way (but I didn't see a clear suggestion).</p>