My question is simple. I have a storyboard uses navigation controller and views, lets say view1, view2, view3 and view4. Flow between them is like following:
view1 --> view2 (push)
view2 --> view3 (push)
view3 --> view4 (push)
view4 --> view2 (push)
What I want to do is, when I click on back button at view2, I always want to go to view1 but not never view4. What logic should I follow to do this?
note: non of them is root view.