title: iPhone: How to allow multiple selection in tabelview for a custom cell?
body: <p>How can I adapt this to be able to make multiple selections? and get the selected ones</p>
  
  <pre><code>- (id)initWithCellIdentifier:(NSString *)cellID {
  if ((self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID])) {
  
      UITableViewCell *cell=self; 
              UIImage *cry = [UIImage APP_CRYSTAL_SELECT];
      self.leftImage = [[[UIImageView alloc] initWithImage:cry] autorelease] ;
              [self.contentView addSubview:leftImage];            
  }
  </code></pre>
  
  <p>And the selected method is:</p>
  
  <pre><code>- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
      [super setSelected:selected animated:animated];
        if(selected)
        {
         NSArray *subviews=[self.contentView subviews];
          for(UIView* view in subviews){
            if([view isEqual:self.leftImage]){
               [self.leftImage setHighlightedImage:[UIImage APP_CRYSTAL_SELECTED]];
          }
      }
  }
  else
  {       
      NSArray *subviews=[self.contentView subviews];
      for(UIView* view in subviews){
          if([view isEqual:self.leftImage]){
              [self.leftImage setHighlightedImage:[UIImage APP_CRYSTAL_SELECT]];
          }
      }
    }
  }
  </code></pre>