title: Changing a label in another view
body: <p>I have a program with multiple views, one of them has labels (LabelView for this question), the other has text fields(TextView for this question). I would like to take the info from the text fields, and put it on the label, I think the easiest way to do this by calling a method LabelView from TextView.</p>
  
  <p>I have tried a couple things:</p>
  
  <ol>
  <li><p>I tried putting a method in LabelView that changed the label's values with parameters. Then calling the method in TextView and passing the data through the parameters.</p></li>
  <li><p>I tried making a delegate, using <a href="https://stackoverflow.com/questions/10052594/xcode-update-viewcontroller-label-text-from-different-view">this</a> question. Unfortunately the last step (add <code>settingView.viewControllerDelegate=self</code> to the <code>viewDidLoad</code> method) failed. <code>settingView</code> was an undeclared identifier.</p></li>
  </ol>
  
  <p>Does anyone know what I should do?</p>
  
  <p>EDIT: Here is some I have done, using Xman's Parent/Child view idea. This is in TextView.m:</p>
  
  <pre><code>NSInteger curScore = [self.ToP1Score.text integerValue];
  NSInteger curPhase = [self.ToP1Phase.text integerValue];
  self.ToP1Score.text = [NSString stringWithFormat:@"%d", (curScore += [self.player1Txt.text integerValue])];
  if ([self.player1Txt.text integerValue] &lt; 50) {
      self.ToP1Phase.text = [NSString stringWithFormat:@"%d", (curPhase += 1)];
  }
  </code></pre>