I have got an iPad app with this as part of my code:
if (NAME1.text == @"") {
SS1.text = @"";
SPA1.text = @"";
}
But it does not clear the UILabel if there is nothing in a UITextField!
Does anyone know how I can get it to do what I want?
Check the
lengthof the string, don’t do direct pointer comparison: