У меня такое чувство, что это глупый вопрос, но я все равно спрошу...
У меня есть коллекция объектов NSDictionary
, чьи пары ключ/значение соответствуют настраиваемому классу, который я создал, назовите его MyClass
. Есть ли простой или "лучший способ" для меня в основном сделать что-то вроде MyClass * instance = [
map NSDictionary
свойств для MyClass
];
? У меня такое чувство, что мне нужно что-то сделать с помощью NSCoding
или NSKeyedUnarchiver
, но вместо того, чтобы споткнуться о нем самостоятельно, я полагаю, что кто-то может указать мне в правильном направлении.