New-Learner New-Learner - 2 months ago 7
Swift Question

How to stop loading container untill execute Parent UIviewcontroller code?

I have a root viewController(v1) and Second UIViewController(v2). v2 showing on button click and v2 have container(c1). My problem is when I called v2 then c1 also load at same time but I need to load c1 after executing v2 function completely. In v2 I am fetching value from database so its taking some time.


You just have to right code in func viewDidAppear(animated: Bool) method in child container which get executed after parent complete his loading code

func viewDidAppear(animated: Bool)
// code