Answer the question
In order to leave comments, you need to log in
How to keep the ViewController entity when navigating back through the Navigation Controller?
The application has two view controllers: a list of folders and a player with a playlist. We chose a folder - the player found the files and went to play them. From the player, you can go back to the folders with the Back button. But how to go back to the player, saving all the data?
If you simply add a segue from the list of folders to the player for this, a new player entity will be opened. It is not clear whether the entity of the player is deleted when moving back, or a new one is created when moving forward.
Answer the question
In order to leave comments, you need to log in
Simultaneously. When moving backward, the current one is deleted; when moving forward, a new one is created.
Options:
1) Create a container (for example, a tabbar controller) and make folders with the player two tabs
2) Add a strong pointer to the player to the controller with folders, and if necessary, go to it, push it, and not create a new one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question