//相当于深拷贝一份dataArray。这样才不会改变dataArray本身的值
NSMutableArray* commitDataArray = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:dataArray]];
转载于:https://www.cnblogs.com/onlyMyRailGun/p/5780860.html
//相当于深拷贝一份dataArray。这样才不会改变dataArray本身的值
NSMutableArray* commitDataArray = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:dataArray]];
转载于:https://www.cnblogs.com/onlyMyRailGun/p/5780860.html