title: How can I use a custom UITableViewCell
body: <p>I have a UITableView and I want some cells to be the standard UITableViewCells and I have one custom cell, called ImageTableViewCell.  I have set this custom cell in IB and have linked with its header and implementation.</p>
  
  <p>The cell loads fine into my view along with the standard cells, but my data is not being put into the cell at runtime.  Here is the code I am using.  Do you notice anything wrong?</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = nil;
      if (tableView == self.visitTableView &amp;&amp; indexPath.section == 0 &amp;&amp; indexPath.row == 0){
          CellIdentifier = @"imageCell";
      }
      else{
          CellIdentifier = @"cell";
          }
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      ImageTableViewCell *imageCell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
      if (tableView == self.visitTableView)
      {
          if (indexPath.section == 0)
          {
              switch (indexPath.row) {
                  case 0:
                      imageCell.patientNameLabel = [self.appointmentDictionary objectForKey:@"patient"];
                      [imageCell.patientImage setImageWithURL:[NSURL URLWithString:[self.appointmentDictionary objectForKey:@"patient_small_photo_url"]] placeholderImage:nil];
                      break;
                  case 1:
                      cell.textLabel.text = @"Appointment";
                      cell.detailTextLabel.text = [self.appointmentDictionary objectForKey:@"scheduled_time"];
                      break;                
                  default:
                      break;
                  }
          }
  </code></pre>