I have an NSMutabelArray with some objects in it as a property of my View-Controller . Now I pass this array when I push this VC.
I originally assigned it.
but now I needed to modify the array whenever the device spins, in VC, without affecting the one in the previous VC. so he made a copy property.
Now I individually changed the objects in the array.
but somehow ... the array in my previous VC was also changing.
I had to create a new NSMutabelArray with modified objects and had to set its property.
Is this copy attribute just another array with the same object references added to the array?
source share