title: viewDidLoad vs ViewWillAppear in IOS
body: <p>Please help me with this. I have created a simple project with two views as shown. I have attached the images for my storyboard and swift files. So, I read that viewdidload will be executed only once while loading the view into the memory. But, when I make a transition from secondview to the firstview the viewdidload is executing again and so is the print statement in the viewdidload method.</p>
  
  <p>Someone please explain me this.
  <a href="https://i.stack.imgur.com/9G7hK.png" rel="nofollow"><img src="https://i.stack.imgur.com/9G7hK.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/Ax3pq.png" rel="nofollow"><img src="https://i.stack.imgur.com/Ax3pq.png" alt="enter image description here"></a> </p>