Does viewDidload method call again on going back to a screen in navigation controller?
I am using navigation controller. I have pushed two viewcontroller to navigation stack. When I am coming back to viewcontroller1 from viewcontroller2 using back button of navigation bar then viewdidload method of viewcontroller1 is called again.But as much as I know viewdidload is called only once at loading time. So why is this happening? Please tell me. Thanks!! -(void)viewDidLoad called only when view controller is loaded but if you want to call any method then you can write code in -(void)viewWillAppear this method called every time when your view is appear. About viewDidLoad viewDidLoad: