错误记录:将数组赋值给另一个页面的数组,改变该数组也会改变原数组

原因:指向的地址相同;

解决:self.gameView = [myArray mutableCopy];

猜你喜欢

转载自blog.csdn.net/ljw2017/article/details/80440827