Can I simply use
if(myString == nil)
For some reason a string that I know is null, is failing this statement.
I encountered this problem today. Despite assigning a string to be nil: NSString *str = nil;, the test if (str == nil) returned FALSE! Changing the test to if (!str) worked, however.
NSString *str = nil;
if (str == nil)
FALSE
if (!str)