I have 3 views view1, view2 and view 3. i have a problem of changing a data in view 2 when i am in view 3. here are the ways i can think of
- pull the navigation controller stack, identify the view by iskindof test, take the variable and change it
- view 2 get the value from appdelegate and from view 3 i just update it in appdelegate and it works
- use a notification center and change the data.
which is the most advice way to change the data in my case.
the data is just a change to set of values to array of objects . .