title: UITableView row height crash
body: <p>In my iPhone application I have four types of cells. Every cell has it's own height. I'd like to set the height of the row for each table view cell but it crashes in this method:</p>
  
  <pre><code>-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
      UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
      NSLog(@"%@", cell);
      if([cell.reuseIdentifier isEqualToString:PastEventWICellIdentifier]){
          return 56;
      }
      if([cell.reuseIdentifier isEqualToString:PastEventWOICellIdentifier]){
          return 56;
      }
      if([cell.reuseIdentifier isEqualToString:EventWICellIdentifier]){
          return 112;
      }
      if([cell.reuseIdentifier isEqualToString:EventWOICellIdentifier]){
          return 112;
      }
      return 56;
  }
  </code></pre>
  
  <p>How can I resolve this?</p>