我尝试在我的数组中查找对象,如果成功,我需要将数组中的对象替换为新对象
for (id existingSig in allSignature)
if ([[existingSig objectForKey:@"SignatureName"] isEqualToString:[item objectForKey:@"name"]])
{
[allSignature removeObject:existingSig];
[allSignature addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"1", @"SignatureIsRich", [item objectForKey:@"name"], @"SignatureName", generatedID, @"SignatureUniqueId", nil]];
}
我有错误“NSCFArray:0x100551f10> 在被枚举时发生了变异”