2009-07-09 66 views

回答

5
[textField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged]; 

那麼你textFieldDidChange方法僅僅是這樣的:

self.quadLabel.text = self.quadInput.text;