Is that correct, when ViewController creates another ViewController inside its' methods (let's say viewDidLoad or viewWillAppear)?
In my case - I have a view A, that contains several other views - B and C, which are quite complex by themselves, so special view controllers vcB and vcC were designed for them and these view controllers are created inside vcA view controller of view A.
Is this OK? What if, for example, vcA sets itself as a delegate for vcB. Which means, that vcB will retain vcA. In this case, to correctly release all objects, we need somewhere set vcB's delegate to nil, but what is the good moment to do this? viewWillDisappear:
, viewDidDisappear:
or smth. else?
I'm sure it's not the only case, where problems are rise up, so I'm looking for your opinions how to correctly design these kind of interactions between view controllers.