This is a pretty robust solution, but it should work. In your function that is called when you press the button...
NSString *string = [NSString stringWithFormat:@"This is a test string"];
if(string == textfield.text){
...
}
Or, you can us a self scheduler to check if it has changed repeatedly.