title: Input text to tapped UILabel?
body: <p>I have looked for an answer to this issue, but I have not found anything that relates to my specific issue very well. I have multiple UILabels, and I am trying to change the text according to which UIButton is pressed (similar to the phone feature on an iphone). I have this method working for a single, known UILabel. However, I am now trying to write to a label when multiple labels are present. I want to identify which label to write text to by tapping the label, but I cannot get the code working... My methods are below:</p>
  
  <pre><code>// init method
  answerFieldC.userInteractionEnabled = YES;
  touch = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(inputAnswer:)];
  [touch setNumberOfTapsRequired:1];
  [answerFieldC addGestureRecognizer:touch];
  
  -(IBAction)inputAnswer:(id)sender {
      strC = [answerFieldC text];
      currentLabel = touch.view;
  
      if (currentLabel==answerFieldC) {
          [strC stringByAppendingString:[sender currentTitle]];
          [answerFieldC setText:strC];
      }
  }
  </code></pre>
  
  <p>The other labels are operating under the same inputAnswer and init code. <code>answerFieldC</code> is the label and <code>strC</code> is the string that stores the text of the label.  Thanks in advance for any help!</p>