A
A
AndreySlimus2016-03-19 17:54:00
Objective-C
AndreySlimus, 2016-03-19 17:54:00

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

1 answer(s)
M
ManWithBear, 2016-03-19
@AndreySlimus

Let's guess. All settings happen directly in viewDidLoad?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question