Saturday, September 28, 2013

An object is nil and an object to NULL, like you?

These two are not all representatives are empty mean? Why do I see a lot of programs which use NSString * obj = nil string assignment to give, rather than NSString * obj = NULL.
Reply:
nil indicates objc object is null
NULL pointer is null
expressed cThere is a Nil means objc class is empty
Reply:
In fact, this is a nil, NULL difference, figure out the difference between them, and your problems will be solved, specifically refer to the link below, for the very wonderful:
http://ask.fenglepai.com / nil% E3% 80% 81nil% E3% 80% 81null% E5% 92% 8Cnsnull% E4% B9% 8B% E9% 97% B4% E6% 9C% 89% E4% BB% 80% E4% B9% 88 % E5% 8C% BA% E5% 88% AB% EF% BC% 9F.html

No comments:

Post a Comment