Answer the question
In order to leave comments, you need to log in
How to restart/completely refresh ViewController?
Good afternoon!
There is a regular ViewController and its self.view has 10-15 regular views added to it. How, after all actions have been performed with these views (their movement within the ViewController - a), update the ViewController, returning it to its initial state, in principle, you don’t even need to save anything.
The setNeedsDisplay method, which is responsible for redrawing the view, somehow does not work. And calling viewDidLoad is probably not the best solution.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question