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

前端 未结 1 1967
隐瞒了意图╮
隐瞒了意图╮ 2021-01-12 15:20

I used a simple NSLog on a dictionary:

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

the result was:

...
\"first_name\" = Peter;
gender         


        
相关标签:
1条回答
  • 2021-01-12 15:47

    When the string has characters apart from alphabets + numerics, it will quote the string.

    This is the basic methodology of the description function.

    0 讨论(0)
提交回复
热议问题