How can we compare the text entered in UITextVIew with my default text in code to determine whether they are both the same or not?
UITextVIew
First is to compare with the value abc and second is to compare with the String * str.
String * str
[textfield1.text isEqualToString:@"abc"]
or
[textfield1.text isEqualToString:str];