I have a UIButton and a UITextField,when the button is pressed the textfield\'s content string will be equal to: This is a test string
UIButton
UITextField
This is a test string
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { //You code here... }
Did u try this?