title: How to create a 'sticky' footer for a UICollectionView?
body: <p>What is the best method to provide a footer for a <code>UICollectionView</code> that "sticks" to the bottom of the screen bounds on a given page? Assume the <code>UICollectionView</code> is full screen and only has one section.</p>
  
  <p>Currently I am providing a <code>UICollectionReusableView</code> object in <code>collectionView:viewForSupplementaryElementOfKind:atIndexPath:</code>, but (as one might expect) when the content of my collection exceeds this screen's bounds, the footer is pushed off-screen.</p>
  
  <p>I'm guessing the key is a <em>Decoration View</em> - but I can't find any good code (non-IB) examples on how these work, and Apple's documentation is in my opinion unclear on this particular subject.</p>
  
  <p><strong>Update re: Decoration Views</strong></p>
  
  <p>After building out and experimenting with a <em>Decoration View</em> (<a href="http://markpospesel.wordpress.com/2012/12/11/decorationviews/" rel="nofollow noreferrer">using this tutorial</a>), I hit some limitations - namely that there aren't really any callbacks between the <em>Decoration View</em> object and your <code>UICollectionViewController</code> controller object (the <em>Decoration View</em> is managed by a <code>UICollectionViewLayout</code> object, not the <code>UICollectionViewController</code> object). It seems Apple was very serious about <em>Decoration Views</em> being limited to visual adornments, and not data-driven (although you could obviously hack around this).</p>
  
  <p>So, the "right" solution still eludes me, but in the mean time I just created a static <code>UIView</code> object and am just managing that from my <code>UICollectionViewController</code> object. It works OK, but feels wrong.</p>
  
  <p><strong>Update re: Sticky HEADERS</strong></p>
  
  <p>Over the last few months, I've worked on similar issues across various projects, and did recently find a solution for sticky HEADERS. I assume the same would apply to footers, but I haven't tested it.</p>
  
  <p>Details about headers here:</p>
  
  <p><a href="https://stackoverflow.com/questions/13511733/how-to-make-supplementary-view-float-in-uicollectionview-as-section-headers-do-i">How to make Supplementary View float in UICollectionView as Section Headers do in UITableView plain style</a></p>
  
  <p>The implementation is pretty heavy, but it seems to work well in most circumstances.</p>
  
  <p>If there is no further activity on this question soon, I will close as a duplicate and point to the article above.</p>