title: This application is modifying the autolayout engine from a background thread - ios9
body: <pre><code>let url = NSURL(string: "http://api.mdec.club:3500/news?")
  
  let task = NSURLSession.sharedSession().dataTaskWithURL(url!) {
      (data, response, error) in
  
      self.jsonResult = try! NSJSONSerialization.JSONObjectWithData(data!, options: NSJSONReadingOptions.MutableContainers) as! NSMutableArray
  
      self.tableView.reloadData()
  }
  
  task.resume()
  </code></pre>
  
  <p>I don't understand why I'm getting this error. I have to put the <code>reloadData()</code> method inside <code>task</code> because I have to wait till the get the data. How else can I reload the table view without getting this error?</p>