Skip to main content
Post Closed as "Duplicate" by Bot, Mick MacCallum, RyanR, Josh Crozier, Salvador Dali
Source Link
user2889249
  • 909
  • 2
  • 13
  • 22

how to Check NSString is null or not

I want to check weather a NSString is null or not. Im assigning from an JSON array. After assigning that string value is <null>. Now I want to check this string is null or not. So I put like this

if (myStringAuthID==nil) but this if statement always false. How I can check a string for null. Please help me

Thanks