title: xCode - add scroll event to UIScrollView
body: <p>I wrote an function that should do something when the top or bottom is hit with the UIScrollView.</p>
  
  <pre><code>    -(void)scrollViewDidScroll: (UIScrollView*)scrolling
  {
      NSLog(@"Event triggered.");
      float scrollViewHeight = scrolling.frame.size.height;
      float scrollContentSizeHeight = scrolling.contentSize.height;
      float scrollOffset = scrolling.contentOffset.y;
  
          if (scrollOffset == 0)
          {
              _lol.text = @"top hit";
              NSLog(@"Top Hit");
          }
          else if (scrollOffset + scrollViewHeight == scrollContentSizeHeight)
          {
              _lol.text = @"bottom hit";
              NSLog(@"bottom Hit");
          }
      }
  </code></pre>
  
  <p>The problem is: I have no idea how to link this function to my UIScrollView named "scrolling".</p>
  
  <p>Thanks in advance.</p>