title: Table View updates faster when scrolled
body: <p>I have a table view in my view controller, and when I hit a button, it should search for data online and fill in the table view cells. For some reason when I run the following code, it takes ~10 seconds to load the table view. But, if I hit search then slide the table view 1 second after, it loads instantly. Is there any way I can make it load instantly without having to scroll down it?</p>
  
  <pre><code>- (BOOL)textFieldShouldReturn:(UITextField *)textField {
      if (textField == self.songField) {
          [self.songField resignFirstResponder];
  
          NSString *searchString = self.songField.text;
          NSString *encodedSearchString = [searchString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
          NSString *finalSearchString = [NSString stringWithFormat:@"https://itunes.apple.com/search?term=%@&amp;entity=song&amp;limit=10",encodedSearchString];
          NSURL *searchURL = [NSURL URLWithString:finalSearchString];
          dispatch_queue_t iTunesQueryQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
  
          dispatch_async(iTunesQueryQueue, ^{
              NSError *error = nil;
              NSData *data = [[NSData alloc] initWithContentsOfURL:searchURL options:NSDataReadingUncached error:&amp;error];
  
              if (data &amp;&amp; !error) {
                  NSDictionary *JSON = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
                  trackName = [[JSON valueForKeyPath:@"results.trackName"] mutableCopy];
                  artistName = [[JSON valueForKeyPath:@"results.artistName"] mutableCopy];
                  artwork = [[JSON valueForKeyPath:@"results.artworkUrl100"] mutableCopy];
                  preview = [[JSON valueForKeyPath:@"results.previewUrl"] mutableCopy];
                  linkData = [[JSON valueForKeyPath:@"results.trackViewUrl"] mutableCopy];
                  if ([trackName count] == 0) {
                      [self.activityIndicator stopAnimating];
                      [self.tableView setHidden:YES];
                      [self.noResultsLabel setHidden:NO];
                  }
                  else {
                      [self.tableView reloadData];
                      [self.cancelButton setHidden:YES];
                  }
              }
          });
      }
   }
  </code></pre>