class ,frame,propertyList,content,subViews的数据问题

{
"class":"SalmonFlipView",
"frame":"{{0, 0}, {768, 1024}}",
"propertyList":{
"frontView":{
"class":"SalmonFlipViewSubViewWithButton",
"frame":"{{0, 0}, {768,1024}}",
"propertyList":{
"flipViewButton":{
"class":"SalmonButton",
"frame":"{{134, 437}, {512, 512}}",
"propertyList":{
"backgroundColor":{
"UIColor":{
"r":0,
"g":0,
"b":255,
"a":1
}
},
"animations":{
"animation":
{
"class":"CABasicAnimation",
"propertyList":{
"fromValue":{
"float":"0"
},
"toValue":{
"float":"1"
},
"keyPath":{
"string":"opacity"
},
"duration":{
"float":"4"
}
}
}
]
}
},
"subViews":

],
"content":""
}
},
"subViews":
{
"class":"UIImageView",
"frame":"{{0, 0}, {461, 593}}",
"propertyList":{
"backgroundColor":{
"UIColor":{
"r":51,
"g":51,
"b":0,
"a":1
}
},
"animations":{
"animation":
{
"class":"CABasicAnimation",
"propertyList":{
"fromValue":{
"rect":"{{100, 100}, {0, 0}}"
},
"toValue":{
"rect":"{{0, 0}, {461, 593}}"
},
"keyPath":{
"string":"frame"
},
"duration":{
"float":"2"
}
}
}
]
}
},
"subViews":

],
"content":""
}
]
},
"backgroundView":{
"class":"SalmonFlipMoviePlayerView",
"frame":"{{107, 173}, {541, 572}}",
"propertyList":{
"contentURL":{
"URL":"http://manager.mediapad.cn/26/page_1220.bundle/1.mp4"
},
"sandBoxContentURL":{
"URL":"http://manager.mediapad/1/26/page_1220.bundle/1.mp4"
},
"closeButton":{
"class":"SalmonButton",
"frame":"{{497, 0}, {44, 44}}",
"propertyList":

],
"subViews":

],
"content":"moviePlayerCloseButton.png"
}
},
"subViews":

]
}
},
"subViews":

]
}
]





就是这种plist嵌套plist的数据,我该怎么用这种数据来控制UI
我的初步认为是提取里边的数据,然后里边的动画参数来创造动画,但是很多参数我根本在文档里都找不到。。。比如这个animationFirstDelay。。。我找到死都不知道这个东西我该怎么放到Xcode的动画里。。。

有人能帮帮我么?

天哪 我只能说写这个API的人绝对是个IOS行家,这个JSON生成的简直太专业了

楼主你发的代码片段里面没有这个animtaionFirstDelay

可能你没发出来吧,我看名字,可能你们写后台的这位哥们想让这个动画N秒后开始

你可以使用dispatch_after代码段把动画代码括起来比较方便一点,延迟的时间等于json中的value

好吧,先谢谢你,我再看看。。头疼。。

替我向你们后台的这个哥们问声好,这完全是反界面本地依赖的先驱啊