*** Terminating app due to uncaught exception 'NSGenericException',reason: '*** Collection <__NSArrayM: 0x7ae683e0> was mutated while being enumerated.'
for (UseModel *m in weakSelf.clearItemArray) {
if(m.parentID==model.parentID) {
[weakSelf.clearItemArrayremoveObject:m];
break;
}
}
添加break,使其跳出循环。
网友评论