Avoid recharging a Container View when returning to the parent controller

0

I have a controller where I add 4 view containers that make a segue to certain storyboards, the problem is that when I come from a modal screen when returning to the parent controller and entering the viewdidAppear, also for some reason I get into the viewdidAppear of the drivers that I have in the containers, is there any way to avoid this? Thanks.

    
asked by Alejandro 09.03.2017 в 12:56
source

1 answer

0

No, you will always enter the viewDidAppear function of each controller because it is part of that driver's life cycle.

Put some code to get an idea, or insert an if inside those viewDidAppear to check if the view has already been loaded.

    
answered by 10.03.2017 в 11:29