(
{
Line1 = "Ashish";
Line2 = "Gujarat";
Line3 = "AAA";
Line4 = "AAA";
Line5 = "AAA";
LineCount = 5;
},
{
Line1 = "George";
Line2 = "IL";
Line3 = "GGG";
Line4 = "GGG";
Line5 = 1;
LineCount = 20;
}
)
它只有两个记录,实际上我的阵列有数千个记录。 现在我想在任何一行具有搜索值时在另一个nsmutablearray中添加该块。 例如,如果我的搜索条件是 a ,那么数组2有第一条记录,数组将是
(
{
Line1 = "Ashish";
Line2 = "Gujarat";
Line3 = "AAA";
Line4 = "AAA";
Line5 = "AAA";
LineCount = 5;
}
)
LineCount是动态的,即如果它是10那么Line1 .... Line10将在每个记录中。 并且搜索必须在Line1 ... LineN内,而不在LineCount字段中。 恩。如果搜索条件为 5 ,则不会返回任何内容。