title: I have a UIView inside of a UIScrollView. How do I reference the parent UIScrollView?
body: <p>I've finally figured out how to stick a UIView inside of a UIScrollView, but now I have the problem of not being able to call the UIScrollView (who is the parent of the UIView) from within my UIView.</p>
  
  <p>I've tried something like:</p>
  
  <p><code>UIScrollView *scrollView = (UIScrollView *)self.superview;</code></p>
  
  <p>But that's not working. My thought process was that the superview would be the container for the current view (UIView), but that returned a UIView so I just casted it to a UIScrollView, which I turned out to not be the right guess.</p>