title: cellForRowAtIndexPath: not called
body: <p>My app has two states: logged in and not logged in, and I have the following architecture (vastly simplified):<br>
  - ViewController A which contains a search box and a table view.<br>
  - ViewController B which is used for logging in the app.</p>
  
  <p>The flow is the following:<br>
  - the user is not logged in;<br>
  - A is pushed on the stack. In <code>viewWillAppear</code> I check if the user is logged in and if yes, an async network request is being made and, once that is done, the table is loaded with the data from the network. However since the user is not logged in at this point, the table view is empty;<br>
  - the user taps on the search box; because he's not logged in, B is pushed (after a confirmation);<br>
  - he logs in successfully in B, then presses a button which pops B and shows A again;<br>
  - at this point in time, because he's logged in, from <code>viewWillAppear</code> I do the async request;<br>
  - when that is completed, I call <code>reloadData</code> on the table view.</p>
  
  <p>What I notice is that <code>numberOfRowsInSection:</code> is called and it returns the correct result, however <code>cellForRowAtIndexPath:</code> is NOT called afterwards and the table remains empty.</p>
  
  <p>I've checked and <code>reloadData</code> is called on the main thread.</p>
  
  <p>Any idea what can it be? Cause it's driving me nuts!</p>
  
  <p>Thanks,<br>
  S.</p>
  
  <p>EDIT: Here's the async bit of code from <code>viewWillAppear</code> in A.</p>
  
  <pre><code>if ([User isLoggedIn]) {
      [self.asyncRequest fetchDataWithCompletionHandler:^(id response, NSError *error) {
          [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
          if (error) {
              [Utils displayError:error];
          } else {
              self.array = response;
  
              self.isLoaded = YES;
              [self.tableView reloadData];
              [self.tableView setContentOffset:CGPointMake(0.0f, 0.0f) animated:NO];
          }
      }];
  }
  </code></pre>
  
  <p>I've checked that the async request completes successfully and that <code>response</code> contains the correct data (this is the array used to back the <code>UITableView</code>). </p>
  
  <p>After <code>reloadData</code>, I've put a breakpoint in <code>tableView:numberOfRowsInSection:</code> and it stops there and it returns the correct number of elements in <code>array</code>. After that, however, the breakpoint in <code>tableView:cellForRowAtIndexPath:</code> is never hit.</p>