Hi,
I have a scenario that I'm not sure whether to retain a view controller or not. Say I had ViewControllerOne
. When a button was pressed, ViewControllerOne
would push ViewControllerTwo
in the navigation stack. ViewControllerTwo
needs a reference to ViewControllerOne
because it needs to access an ivar in that view controller. The question is, would I retain ViewControllerOne
in ViewControllerTwo
(@property (retain) ViewControllerOne *vc
) or not? The navigation controller already retains the ViewControllerOne
so I'm not really sure.
Thanks