title: 'reset' table view cell's content
body: <p>my app has a bug, and i believe its because I'm not reseting the cells content. The apple docs say</p>
  
  <blockquote>
    <p>The table view’s data source implementation of tableView:cellForRowAtIndexPath: should always reset all content when reusing a cell.</p>
  </blockquote>
  
  <p>Could someone please explain how to do this, or point me to a tutorial? Thank you in advance!</p>
  
  <p><strong>My cellForRow</strong></p>
  
  <pre><code>    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
  {
      static NSString *identifier = @"Cell";
  
      cell = [tableView dequeueReusableCellWithIdentifier:identifier];
      if (cell == nil)
       {
           cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier] autorelease];
  
           addBtn = [[UIButton alloc]init];
           addBtn =[UIButton buttonWithType:UIButtonTypeRoundedRect];
           [addBtn setFrame:CGRectMake(220,10,25,55)];
           [addBtn addTarget:self action:@selector(addLabelText:) forControlEvents:UIControlEventTouchUpInside];
           [addBtn setTitle:@"+" forState:UIControlStateNormal];
           [addBtn setEnabled:YES];
           [cell addSubview:addBtn];
  
           subBtn = [[UIButton alloc]init];
           subBtn=[UIButton buttonWithType:UIButtonTypeRoundedRect];
           [subBtn setFrame:CGRectMake(260,10,25,55)];
           [subBtn addTarget:self action:@selector(subtractLabelText:) forControlEvents:UIControlEventTouchUpInside];
           [subBtn setTitle:@"-" forState:UIControlStateNormal];
           [subBtn setEnabled:YES];
           [cell addSubview:subBtn];
  
       } 
      //cellText.hidden=!self.editing;
      cell.textLabel.textColor = [UIColor orangeColor];
      [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
      cell.imageView.image = [imageArray objectAtIndex:indexPath.row];  
      cell.textLabel.text = [number objectAtIndex:indexPath.row];// &lt;------ Is this line in the right place?
      cell.textLabel.text = @"1"; // &lt;---- Is this line in the right place? 
  
  
  return cell;
  }
  </code></pre>