how can I allocate and initialize an object, so it should not reload again when ViewDidLoad Loads?
-
29-10-2019 - |
Question
I have initialized an delegate object in ViewDidLoad
of my ViewController, but when I am again loading it, it is initializing the value again.
I am saving some some sort of array in that delegate object which I want to access using getObject
and setObject
.
What should I do so that the delegate object doesn't get re-initialized every time ViewDidLoad
is called?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow