Where to put object mappings (in RestKIt)
-
29-10-2019 - |
Вопрос
As I don't want to hijack another thread here comes my question about mappings.
First read: Where's the best place to put object mappings in RestKit
I'm sure that the answer Blake Waters gave will probable be very correct as he is a much smarter and more experienced guy than I am, but to me logic tells me to put the mapping in each model: if you change something in your model, you're just a scroll away to change your mappings.
In my AppDelegate I would then just call the initMappings (or whatever you want to call it) in each of my models.
Нет правильного решения
Не связан с StackOverflow