I have a Textfield, and when i print its text to a NSLog, i get the output as (null). I want to detect this how can i do this programatically.
I have tried several approaches and all of the following failed.
NSLog (@"Print %@ ", textfield.text);
if ([textfield.text isEqualToString:@""]) {}
if ([textfield.text isEqualToString:@"(null)"]) {}
if ([textfield.text isEqualToString:nil]) {}
How can i detect (null) which is returned when printed using NSLog ?
I think you mean something like this: