I’m using a UINavigationController for traveling between different views.
The last of the views need to be dynamic as selected in the previous view. The viewDidLoad method does not help, as the content is the same as the first time. I need to know how to unload uiview …
I have also tried viewDidAppear; in this case the objects previously created are not deleted and the new objects are loaded over the others.
What should I do, unload when I change to another view or I go back?
try to unload your viewcontroller in
viewDidDisappermethod.I think it should work.