Can I simply use
if(myString == nil)
For some reason a string that I know is null, is failing this statement.
Is it possible that your string is not in fact nil, and is instead just an empty string? You could try testing whether [myString length] == 0.
nil
[myString length] == 0
2.1m questions
2.1m answers
60 comments
57.0k users