我有一个NSDictionary,我想按日期分组创建一个对象数组
主要NSDictionary的示例:
({
date = "2014-04-27";
group = "yellow.png";
length = 180;
},
{
date = "2014-04-28";
group = "blue.png";
length = 180;
},
{
date = "2014-04-27";
group = "blue.png";
length = 120;
})
Run Code Online (Sandbox Code Playgroud)
我想分组类似的东西:
2014-04-27 = (
{
date = "2014-04-27";
group = "yellow.png";
length = 180;
},
{
date = "2014-04-27";
group = "blue.png";
length = 180;
})
2014-04-28 = ( {
date = "2014-04-28";
group = "blue.png";
length = 120;
})
Run Code Online (Sandbox Code Playgroud)
有人能帮助我吗?我尝试了很多FOR,但我无法得到它