//一边遍历数组一边操作数组内容会出错
//for (AllUserInfoModel *m in dotArr) {
//if([m.userId isEqualToString:model.userId]){
//[dotArr removeObject:m];
//}
//}
//采用block来遍历并且操作数组
[dotArrenumerateObjectsUsingBlock:^(idobj,NSUIntegeridx,BOOL*stop) {
AllUserInfoModel*m = dotArr[idx];
if([m.userIdisEqualToString:model.userId]) {
*stop =YES;
if(*stop ==YES) {
[dotArrremoveObject:m];
}
}
if(*stop) {
}
}];