NSMutableDictionary is adding quotes to keys and values - why?

后端 未结 2 391
故里飘歌
故里飘歌 2020-12-19 12:02

I\'m trying to add some additional key/value pairs to an NSMutableDictionary, using:

Tag *tag1 = [results1 objectAtIndex:0];
[resultsDict setObject:[tag1 ret         


        
相关标签:
2条回答
  • 2020-12-19 12:05

    The quotes aren't really part of the content; the -description method (called by po, IIRC) simply wraps things in quotes for display that have non-alphanumeric characters in them.

    0 讨论(0)
  • 2020-12-19 12:28

    Adding to it, you can use keys or values neglecting the quotation and it should be fine..

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