0
我需要将此数据映射到一个核心数据对象(EventList)。RestKit动态映射
{
"eventList":[
{
"code":"hhel444440lhxxxxxn",
"name":"Test Event",
"id":"222495710159sdfdfd8000000",
"status":"Open",
"urls":[
{
"hostURL":"mything.association.somedomain.com",
"module":"association",
},
{
"hostURL":"mything.mobile.somedomain.com",
"module":"mobile",
}
]
}
]
}
======我需要它映射到我班===========这些属性
@dynamic code;
@dynamic name;
@dynamic id;
@dynamic status;
@dynamic hostURL;
的hostURL只能当值映射对于模块==移动,所以在这种情况下,我们不希望从模块==关联的第一个URL。我们需要跳过第一个。
我想使用DynamicMapping,但是当我尝试动态映射,我得到:
valueForUndefinedKey:]:实体(空)不是键值为重点“hostURL”兼容编码-“。
你能分享你的映射代码吗?这可能是有帮助的! – Vassily