First of all you cannot push or present a view, it must be a UIViewController
.
Secondly answer to your question it is true, when pushing or presenting "B" ViewController, "A" still remains in memory.
viewDidLoad
of "A" does not called when "B" ViewController is Popped off the stack.
If you want a function in A ViewController, that should always called then you can use
-(void)viewWillAppear:(BOOL)animated
-(void)viewDidAppear:(BOOL)animated
These will be called even after "B" ViewController is Popped off.