title: How to pop view controller to one of the previous view controllers in swift?
body: <p>I have been trying to pop my view controller to one of previous view controllers in my view stack. Assume that, There are <strong>firstVC, secondVC, thirdVC and fourthVC</strong> viewcontrollers in my view stack. The current view controller is fourth one, and there is a tableview in fourthVC. If user delete all the rows in tableview, I should direct the user to <strong>secondVC</strong>. I had an idea that I would create another navigationcontroller and present it with <strong>presentViewController</strong> command. However, this is not a solution for my problem. Because I thougt that a navigation problem appears for this case. How can I find best solution for this case ? </p>
  
  <p>Thank you for your answers,
  Best regards</p>