title: ios: UITableViewCell disappear when scrolling
body: <p>I'm working on some kind of chat iphone app, an I'm facing a problem I do not manage to fix.<br>
  I saw several answers for this, but none seems to fix this in the context I have.</p>
  
  <p>I use a TableView to display the messages and when I scroll from time to time the cells disapppear. I have to go back to the parent view (the view which navigation controller is used to push my chat view) and then go back to the chat view to see the cells.</p>
  
  <p>I have the following method:  </p>
  
  <pre><code>- (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath {    
     // static NSString* CellIdentifier = @"MessageCellIdentifier";
     // MessageTableViewCell* cell = (MessageTableViewCell*)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
     //if (cell == nil){
  
     MessageTableViewCell* cell = [[[MessageTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil] autorelease];
      SharethingsAppDelegate *delegate = (SharethingsAppDelegate *)[[UIApplication sharedApplication] delegate];
     ChatMessage* message = [[delegate.dataModel getMessagesOfChatWithID:self.chatID] objectAtIndex:indexPath.row];
     [cell setMessage:message];
  
     //}
     return cell;
  }
  </code></pre>
  
  <p>I tried to keep the test "cell == nil" but same thing.<br>
  I guess this is some kind of cell re-usage problem but... cannot really figure out what it is exactly.</p>
  
  <p>Any idea ?</p>