Description of NSDictionary - why are some key names with quotes?

I used a simple NSLog for a dictionary:

NSLog(@"dict %@", dictionary); 

the result was:

...
"first_name" = Peter;
gender = male;
id = 1171548848;
"last_name" = Lapisu;
...

Why are some keywords in quotation marks and some not?

+6
source share
1 answer

If a string contains characters other than letters + numbers, it will be enclosed in quotation marks.

This is the main methodology of the descriptionfunction.

+10
source

All Articles