ios - RestKit 0.23.3: mapping same key twice (or even more often) does not work -
This case has not been found in any of the restkit documents yet, so I think it does not work: / P>
This mapping, where I am using the key "theText" twice
RK object mapping * mapping = [RK objectmapping mapping forex: [dmtext class]]; [Mapping add attributemapping freedoms: @ {@ "The Testide": @ "Headline", @ "The Text"): @ "Labels", @ "Some Else": @ "Hansiming Else"}];
will return the mapped textile object to the mapped, but the key is only with the title "theText" with the title, but the label is zero
Is there any way How can I fill the value of a key in many destination attributes?
I thought mapping has actually taken an exception if you try to configure it like this ...
However, you can create a custom accessor method on your destination class and use the mapping to call that accessor. Method, then, in that method, set your 2 variables.
Comments
Post a Comment