Some times when I push ViewController into Navigation Controller,
the viewDidLoad() method of the View Controller is not called.
And this cause my application to crash. I would appreciate any help.
I forget to mention that I load the view from the nib before I push it to the Navigation Controller.
Thanks,
Sarah
The
viewDidLoadmethod is only called when the view is first loaded from the Nib file. If the view was already loaded and you push the view again it will not fire again.Depending on what you want to do, you may want to use
viewWillAppearorviewDidAppearinstead.