title: UISlider in Dynamic UITableView
body: <p>I am creating an app in where I need to add a bunch of sliders in a Dynamic UITableView. I added the slider like this:</p>
  
  <pre><code>-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
      UISlider *slider = [[UISlider alloc]init];
      //ALL OTHER CODE
      [cell addSubview:slider];
      return cell;
  }
  </code></pre>
  
  <p>Now the slider is added to the UITableView but the if I changed the value of the first slider another slider changes with it.I know this is something to do with dequeing the cell but how do I fix it?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I tried @daveMack answer like this:</p>
  
  <p><strong>CustomCell.m:</strong></p>
  
  <pre><code>- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
  {
      self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
      if (self) {
          // Initialization code
          self.checkBox = [[M13Checkbox alloc]initWithTitle:@"Checkbox!"];
          self.checkBox.checkAlignment = M13CheckboxAlignmentLeft;
          [self addSubview:self.checkBox];
      }
      return self;
  }
  </code></pre>
  
  <p>Cell For Row At Index Path:</p>
  
  <pre><code>-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      CheckboxCell *cell;
  
      cell = [self.tableView dequeueReusableCellWithIdentifier:@""];
      if (!cell) {
          cell = [[CheckboxCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"];
          return cell;
      }
      return cell;
  }
  </code></pre>