title: UITableView reload data in Swift
body: <p>There's this code of the test project in Objective-C:</p>
  
  <pre><code>@implementation ViewController {
      NSArray *_locations;
  }
  
  - (void)viewDidLoad
  {
  [super viewDidLoad];
  JSONLoader *jsonLoader = [[JSONLoader alloc] init];
  
  NSURL *url = [[NSURL alloc]initWithString:@"http://mechnikova.info/api/pic2.php?task=1"]; 
  
  dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
      _locations = [jsonLoader locationsFromJSONFile:url];
  
      [self.tableView performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:YES];
  });
  </code></pre>
  
  <p>There's this code of the same test project in Swift:</p>
  
  <pre><code>class ViewController: UITableViewController {
  var locations:NSArray=[]
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view, typically from a nib.
  
      var jsonLoader:JSONLoader = JSONLoader()
      var url = NSURL(fileURLWithPath: "http://mechnikova.info/api/pic2.php?task=1")
      dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_HIGH, 0), {
          self.locations = jsonLoader.locationsFromJSONFile(url)
          self.tableView.performSelectorOnMainThread(selector:(reloadData), withObject: nil, waitUntilDone: true)
      })
  }
  </code></pre>
  
  <p>I have error - <strong>Use of unresolved identifier 'reloadData'</strong> in</p>
  
  <pre><code>self.tableView.performSelectorOnMainThread(selector:(reloadData), withObject: nil, waitUntilDone: true)
  </code></pre>
  
  <p>Help please!</p>