How to know if object address is 0x0?
ios, objective-c
Solution
Just compare the reference as
if (obj == nil)
or
if (obj == NULL)
or
if (obj == 0)
or
if (!obj)
You can use any one of them they all are same.
Problem
I want to check if my object address is 0x0. How to do it in objective c?