title: swift pull to refresh
body: <p>i have my <code>refreshcontroller</code> with a <code>scrollview</code>.. </p>
  
  <pre><code>  self.refreshControl = UIRefreshControl()
          self.refreshControl.attributedTitle = NSAttributedString(string: "Frissítéshez húzzad! :)")
          self.refreshControl.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)
          self.scrollView.addSubview(refreshControl)
  
  func refresh(sender:AnyObject)
      {
  
  //my refresh code here..
  
              self.refreshControl.endRefreshing()
      }
  </code></pre>
  
  <p>I'm adding as a <code>subview</code> to a <code>scrollView</code>. It's working when the page content is <code>overflowing</code> the screen. but the issue arise  when i haven't received much data and it's not <code>overflowing</code>, the <code>pull and refresh</code> function is not working. :( </p>
  
  <p>I'm not using <code>tableview</code>. </p>
  
  <p>Can anybody help me how to solve this problem? </p>