title: dispatch_async going in infinite loop
body: <p>am developing an application where i have to get data from JSON and display in UITableView. Getting of data am doing in the background. But it seems to go in infinite loop.</p>
  
  <p>Any help will be greatly appreciated.</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
  static NSString *CellIdentifier = @"Cell";
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier   forIndexPath:indexPath];
  queue = dispatch_queue_create("com.events.app", NULL);
  dispatch_async(queue, ^{
      [self load];
      //Need to go back to the main thread since this is UI related
      dispatch_async(dispatch_get_main_queue(), ^{
          // store the downloaded image in your model
          Events *evObj = [eventsArray objectAtIndex:[indexPath row]];
          NSLog(@"evObj = %@",evObj);
          cell.textLabel.text = evObj.eName;
          cell.detailTextLabel.text = @"Detailed Text";
          [self.tableView beginUpdates];
          [self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath, nil]
                                withRowAnimation:UITableViewRowAnimationLeft];
          [self.tableView endUpdates];
      });
  });
      // Configure the cell...
  
  
  
  return cell;
  }
  </code></pre>