title: Set a label in a cell that is controlled by a stepper - objective c
body: <p>Hi I have a UITableView and I am dymanically inserting cells into it that contain a UIStepper and a UILabel. The UILabel shows the value of the UIStepper.</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
  
      if(!cell)
          cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
  
      [cell.textLabel setText:[self.myarray objectAtIndex:indexPath.row]];
  
      UIStepper *stepper = [[UIStepper alloc]init];
  
      UILabel *label = [[UILabel alloc]init];
      label.text = [NSString stringWithFormat:@"%.f", stepper.value];
  
      [cell addSubview:stepper];
      [cell addSubview:label];
  
      [stepper addTarget:self action:@selector(incrementStepper:) forControlEvents:UIControlEventValueChanged];
      return cell;
  }
  </code></pre>
  
  <p>I have removed some of the above lines that do the formatting for clarities sake but this works and everything is ok. </p>
  
  <pre><code>-(void)incrementSkillStepper:(id)sender
  {
      UIStepper *stepper = (UIStepper*)sender;
      //set the label that is in the same cell as the stepper with index stepper.value.
  }
  </code></pre>
  
  <p>When I click the stepper in the specific cell I want the label in the same cell to increment, but my problem is in which the way that addtarget works - I can only send the sender which in this case is the stepper to the event which means it doesnt have access to the dynamically created label. Does anybody know how I can set the text of the label from the incrementStepper delegate method?</p>