I know I am missing something obvious, but I just cannot see it. This method is meant to compare the text of a label to the text of a text box, and then delete the text. So if t
You should not use == or != for string comparison in Objective C. You need to use the isEqualToString or isEqual method.
isEqualToString
isEqual
if (([self.lblFabric2.text isEqualToString:self.txtType.text]))
When you use == or != you are comparing the pointers where the strings are stored.