title: Asynchronous loading - UITableView and Firebase
body: <p>I'm working on a project that loads list data from Firebase and populates a UITableView. While I see the snapshots being called from my firebase instance, they don't populate the table, while a local synchronous, NSMutableArray shows content. How do I make my UITableView wait for the firebase data to get there? </p>
  
  <p>Here's the code:</p>
  
  <pre><code>   - (void)viewDidLoad
  {
      [super viewDidLoad];
      handles = [[NSMutableArray alloc] initWithObjects:@"Item No. 1", @"Item No. 2", @"Item No. 3", @"Item No. 4", @"Item No. 5", @"Item No. 6", nil];
      [self loadDataFromFirebase];
      NSLog(@"%lu", (unsigned long)[handles count]);
      self.sampleTableView.delegate = self;
      self.sampleTableView.dataSource = self;
  }
  
  -(void)loadDataFromFirebase
  {
      Firebase* listRef = [[Firebase alloc] initWithUrl:@"https://wheresthatfoodtruck.firebaseIO.com/foodtrucks"];
      [listRef observeEventType:FEventTypeChildAdded withBlock:^(FDataSnapshot *snapshot) {
          NSLog(@"%@", snapshot.value);
          [handles addObject:snapshot.value];
      }];
  }
  </code></pre>
  
  <p>Handles prints out the Item numbers, but if I remove that test data, [Handles count] becomes zero and the loading of the UITableView is faster then getting the data from Firebase. Much appreciated - I really like Firebase, its a great platform and I hope I can get past this issue.</p>