title: Set cell identifier programmatically
body: <p>I'm building a <code>UITableView</code> with some cells in it. However, it keeps throwing <code>unable to dequeue a cell with identifier cell</code>. I'm using the code below, which should work. What am I doing wrong?</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *cellIdentifier = @"cell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier forIndexPath:indexPath];
  
      if (!cell)
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier: cellIdentifier];
  
      cell.textLabel.text = [self.ninjas[indexPath.row] name];
  
      NSString *imageUrl = [NSString stringWithFormat: @"%@", [self.ninjas[indexPath.row] thumbnail]];
  
      [cell.imageView setImageWithURL:[NSURL URLWithString:imageUrl]
                     placeholderImage:[UIImage imageNamed:@"50-50.jpg"]];
  
      return cell;
  }
  </code></pre>
  
  <p>I'm not using a storyboard for this app.</p>