I'm working on iOS app and sometimes I need to jump on the second view of my application, but exactly on the state of the view I've left it. I've found out that popToViewController is suitable for this operation. My question is : What happens with other views? Are they killed or are they still alive in the background? For navigation between views I'm using navigationController. Thank you.
NavigationController is working like stack. When you are popping something it's being deallocated. For example view controllers stack like this:
A -> B -> C -> D
If you will call popToViewController(B) the stack should be:
A -> B
View controllers C and D should be deallocated, of course if they don't have strong references that keep them in the memory ;)