I’m not exactly sure how to check whether a NSString is blank or not, I’ve got this code…
NSString *imageName = [myItem objectForKey:@"iconName"];
if(imageName == @"")
{
}
And when I do a print on the myItem object, it comes up as..
iconName = "";
At the NSString *imageName line, I noticed in xcode in the console it says
“variable is not NSString”
Which I don’t get as iconName is saved and stored on the parse.com database as a NSString.
When I run that code though it doesn’t seem to realise that imageName = “”;
You should use this code block when comparing strings: