When i try to display the value of a Dictionary value:
NSLog(@"%@",[self.user valueForKeyPath:@"age"]);
The first time, i got (null), the second time i got <null>
What differences does exist between the two result? Thanx in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When
NSLogoutputs(null), it means that it was literally passed in0x0, orNULL.When it outputs
<null>, it means that it was passed in[NSNull null], instead.NSNull‘s are commonly used in arrays & other collections that cannot storenilby default. Thus, a special object is used instead.