title: Error while refresh control in swift
body: <p>I am trying to implement refresh control in tableview by using <code>UIRefreshControl</code>.</p>
  
  <p>But while pulling for refresh in the app, it just give me a error: </p>
  
  <blockquote>
    <p>"Thread 1 : Signal SIGABRT" in the app delegate file.</p>
  </blockquote>
  
  <p>I don't know how to resolve it. I need help. Can anyone tell me how to resolve this.</p>
  
  <p>Below is my implemented code:</p>
  
  <pre><code>class FeedTableViewController: UITableViewController, UITableViewDataSource, UITableViewDelegate, NSXMLParserDelegate {
  
  var myFeed : NSArray = []
  var url: NSURL = NSURL()
  
  var tableViewCtrl = UITableViewController()
  
  var refreshCtrl:UIRefreshControl!
  
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      self.tableView.rowHeight = 100
      self.tableView.dataSource = self
      self.tableView.delegate = self
  
      // value of the url comes from view controller swift file
      loadNews(url);
      self.refreshCtrl = UIRefreshControl()
      self.refreshCtrl!.attributedTitle = NSAttributedString(string: "Pull to refresh")
      self.refreshCtrl!.addTarget(self, action: "ref", forControlEvents: UIControlEvents.ValueChanged)
      self.tableView.addSubview(refreshCtrl!)
  
  
  }
  
  func ref(sender:AnyObject)
  {
      loadNews(url)
      self.refreshCtrl.endRefreshing()
  }
  
  func loadNews(data: NSURL) {
              var myParser : XmlParserManager = XmlParserManager.alloc().initWithURL(data) as! XmlParserManager
      myFeed = myParser.feeds
              tableView.reloadData()
  }
  }
  </code></pre>