difference between nil and NULL
ios, iphone
Solution
They are the same. However, it is conventional to use `nil` to compare against an objc object, and when assigning to an objc object.
Problem
Possible Duplicate: NULL vs nil in Objective-C Objective-C: What's the difference between NULL, nil and @“”? all I have a simple problem that my objective variable has NULL value in it. and it simply enter in the if condition. I have to check that if variable objective length is greater then zero and no null value then enter in condition. and When I use NULL or nil in comparison? THANKS