I have a modal view controller and a master view controller. When I open the modal view controller, everything works fine. But when I press the back button, the Master View Controller isn’t loaded and loads itself immediately after the transition is done. Is there anyway I can fix this issue? Would I use prepareforsegue? A point in the right direction would be greatly appreciated!
Share
If you’re using presentModalViewController (or the storyboard equivalent) all you have to do is have the modal view controller call
[self dismissModalViewControllerAnimated:YES]. The master view controller will not have been removed from memory, so no setup is necessary.