Hi
I've got a View Controller that I open as a Modal View when a button is pressed. This contains some interactive elements, which consist of interface builder objects that move around the screen from their original positions.
I need everything to start from scratch every time the modal view controller i opened. Almost as if closing the view controller close the view completely. Is there a way of doing this?
I know I could simply put into viewWillDisappear the code for sending all the elements back to their original places and removing all the relevant subviews from the view, but I want to find an easier solution. Does anybody have any ideas?
Sam
I've got a View Controller that I open as a Modal View when a button is pressed. This contains some interactive elements, which consist of interface builder objects that move around the screen from their original positions.
I need everything to start from scratch every time the modal view controller i opened. Almost as if closing the view controller close the view completely. Is there a way of doing this?
I know I could simply put into viewWillDisappear the code for sending all the elements back to their original places and removing all the relevant subviews from the view, but I want to find an easier solution. Does anybody have any ideas?
Sam