Search code examples
ios5uisplitviewcontrollersegue

Replace segue creating new instance


I've run into a problem with a SplitViewController app. When I select a row from the table in the master view I'm replacing the detail view with a replace segue. The problem is each time this happens it creates a new instance/reloads the detail view controller. Is there any way I can have it so it will replace the detail view with the previous instance if it has already been instantiated. I'd like the state for the detail views to be remembered, such as input into textfields.


Solution

  • Cannot be done. A segue will always instantiate a view controller