objective c - How do I choose to go back to the loaded uiviewcontroller?
I have a view on a storyboard the has a button to perform a certain action. To perform this action though, the user must be logged in. The button handler tests if the user is logged in and performs one segue if YES and another if NO. The NO segues pushes to a login view controller. There is another segue connecting back to the first view controller so if login is successfull the user can pick up where they left off. The view controllers are embedded in a navigation controller.
Problem is, the 'return' segue is loading a whole new instance of the view controller and not referencing the origional instance so I end up with empty interface elements and 2 copies of that view controller in memory.
How can I get back to the original instance of the view controller?
Similar questions
- Python csv.reader : how do I go back to the top of the file?
- dart - How do I go back and refresh the previous page in flutter?
- UINavigationController - how do I go back to the initial view controller in swift?
- objective c - The back button does not appear on the pushed uiviewcontroller
- go - How do I "project" a pointer back to a value in golang?
- More similar questions >>
All Answers
Leave a Reply