How would I make a UILabel update as a user enters text in a UITextField. In my case, I have a quadratic equation solver for the iPhone and as the user enters the values of a b & c, I want a UILabel to update with the numbers given by the user.
+4
A:
[textField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
Then your textFieldDidChange method is just something like:
self.quadLabel.text = self.quadInput.text;
Andrew Johnson
2009-07-09 22:56:19