title: UIRefreshControl conditionally declare for ios 5 and below
body: <p>I am using <code>UIRefreshControl</code> for pull down to refresh for iOS 6, it is working. I am using a custom delegate to update when it is done, in that method I call, </p>
  
  <pre><code>[self-&gt;refresh endRefreshing];
  </code></pre>
  
  <p>I have declared,</p>
  
  <pre><code>UIRefreshControl *refresh;
  </code></pre>
  
  <p>in the interface file, because I am not able to call </p>
  
  <pre><code>[self-&gt;refresh endRefreshing] 
  </code></pre>
  
  <p>from by custom delegate method. </p>
  
  <p>Its all working perfectly for iOS 6, but on lower version of iOS, it fails because `UIRefreshControl' is only available from iOS 6 and above. </p>
  
  <p>How can i conditionally declare them so that it works both on iOS6 and below? </p>