This is just a visual scenario of what's actually happening.
I have an Object A in my View Controller1. Similarly, i have an ObjectB which is similar to the type of ObjectA, in my View Controller2.
Now, on click of a button, i assign ViewController2.ObjectB = ViewController1.ObjectA
(or self.ObjectA) from my 1st View Controller.
Now, the data passes successfully over to the ViewController2. But, when i perform some changes to ObjectB in ViewController2, the changes are reflected in ObjectA of ViewController1 as well.
This should not happen as the original data of ObjectA is then lost, which i need if user goes to and fro from ViewController1 to ViewController2 and vice-versa as i m always doing this ViewController2.ObjectB = ViewController1.ObjectA
on click of my button in ViewController1.
Anybody have any idea what's goin on ? Please help me out. It's driving me nuts :-(