Instantiating Custom Class from NSDictionary

后端 未结 5 703
-上瘾入骨i
-上瘾入骨i 2021-01-30 09:45

I have a feeling that this is stupid question, but I\'ll ask anyway...

I have a collection of NSDictionary objects whose key/value pairs correspond to a cus

5条回答
  •  难免孤独
    2021-01-30 10:10

    If your doing this sort of thing chances are your dealing with JSON and you should probably have a look at Mantle https://github.com/Mantle/Mantle

    You will then get a convenient method dictionaryValue

    [anObject dictionaryValue];
    

提交回复
热议问题