title: Is it possible to add fixed content to a UIScrollView?
body: <p>I want to create a subclass of <code>UITableView</code> or <code>UIScrollView</code> that will have some shading at the top when the content offset is > 0 to indicate that the content is scrollable. (See image attached)
  <img src="https://i.stack.imgur.com/Rx8kw.png" alt="enter image description here"></p>
  
  <p>The way I'm implementing it right now is using the <code>UIViewController</code> that is the delegate of the <code>tableView</code>. I simply have a <code>GradientView</code> on top of the <code>tableView</code>, and I intercept <code>scrollViewDidScroll:</code> to animate the visibility of that top gradient.</p>
  
  <p>My problem with this implementation is that it's not "clean". I want my <code>UIViewControllers</code> to take care of logic, and not to deal with applying gradients and stuff. I wish I could just drop a subclass of <code>UITableView</code> that will do that for me.</p>
  
  <p>The challenge for me is that I can't figure out how the <code>tableView</code> could add to itself a fixed content on top of the scrollable content.</p>
  
  <p>Another question is what method/s of <code>UIScrollView</code> should I override to intercept the scrolling event. Obviously I don't want the tableView to be the delegate of itself...</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>