title: How to hide specific cells in UITableView
body: <p>I am getting data from a MySQL database with AFNetworking, the data is coming in, and in
  <code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath</code></p>
  
  <p>I have the code to check whether the current logged in user is equal to the field 'creator' in MySQL, the entries show but I want the empty cells to be hidden.</p>
  
  <pre><code>if ([creator isEqual: userID]) {
  
      [cell.contentView addSubview:imageView];
  
      cell.textLabel.text = [[NSString alloc] initWithFormat:@"       %@",[tempDictionary objectForKey:@"team_name"]];
      cell.detailTextLabel.text = [[NSString alloc] initWithFormat:@"%@        %@ \n%@", [tempDictionary objectForKey:@"date"], [tempDictionary objectForKey:@"time"], [tempDictionary objectForKey:@"location"]];
  
  } else {
  
      [imageView removeFromSuperview];
  
      cell.textLabel.text = nil;
      cell.detailTextLabel.text = nil;
  
  }
  </code></pre>
  
  <p>The UITableView is just showing the data for the selected fields but also showing all the other empty cells (as it is still counting the array).</p>