【发布时间】:2012-02-16 07:26:36
【问题描述】:
我有NSMutableArray 如下
如何仅获取具有experience_id=1 的数据或更新这些数据?
有没有其他不循环的方法?
(
{
"exp_achievements" = "get certificate for best employee";
"exp_achive_id" = 1;
"experience_id" = 1;
},
{
"exp_achievements" = "get certificate for best employee test";
"exp_achive_id" = 3;
"experience_id" = 1;
},
{
"exp_achievements" = test2;
"exp_achive_id" = 5;
"experience_id" = 3;
}
)
【问题讨论】:
-
告诉我如何一次访问整个数组
-
我一次拥有所有数据,之后需要过滤数据,例如特定的 exprience_id
-
@Roshni 这是一个 json 字符串吗?
-
但是你必须一次访问一个数组对象,所以你必须使用循环
-
@Roshni 我无法理解数组的结构,就像 array[0]={string1,string2};数组[1]={e,e} ?
标签: iphone objective-c ios4 nsmutablearray nsmutabledictionary