title: Can I use a UIRefreshControl in a UIScrollView?
body: <p>I have about 5 <code>UIScrollView</code>'s already in my app which all load multiple <code>.xib</code> files.  We now want to use a <code>UIRefreshControl</code>.  They are built to be used with UITableViewControllers (per UIRefreshControl class reference).  I do not want to re-do how all 5 <code>UIScrollView</code> work.  I have already tried to use the <code>UIRefreshControl</code> in my <code>UIScrollView</code>'s, and it works as expected except for a few things.</p>
  
  <ol>
  <li><p>Just after the refresh image turns into the loader, the <code>UIScrollView</code> jumps down about 10 pixels, which only does not happen when I am very careful to drag the <code>UIScrollview</code> down very slowly.</p></li>
  <li><p>When I scroll down and initiate the reload, then let go of the <code>UIScrollView</code>, the <code>UIScrollView</code> stays where I let it go.  After it is finished reloading, the <code>UIScrollView</code> jumps up to the top with no animation.</p></li>
  </ol>
  
  <p>Here is my code:</p>
  
  <pre><code>-(void)viewDidLoad
  {
        UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
        [refreshControl addTarget:self action:@selector(handleRefresh:) forControlEvents:UIControlEventValueChanged];
        [myScrollView addSubview:refreshControl];
  }
  
  -(void)handleRefresh:(UIRefreshControl *)refresh {
        // Reload my data
        [refresh endRefreshing];
  }
  </code></pre>
  
  <p>Is there any way I can save a bunch of time and use a <code>UIRefreshControl</code> in a <code>UIScrollView</code>?</p>
  
  <p>Thank You!!!</p>