I have a UIScrollView which has 2 different views added via viewController1.view and viewController2.view properties. I want to be notified when viewController1.view or viewController2.view has appeared on screen. Tried to use the viewDidAppear method but it does not gets called.
Missed something? Any ideas?
Thanks!
//Add xViewController to scrollView
[scrollView addSubview:firstViewController.view];
[scrollView addSubview:secondViewController.view];
[scrollView addSubview:thirdViewController.view];
[scrollView addSubview:fourthViewController.view];
Methods such as viewDidAppear can only be fired when view controllers are pushed to the stack, not singular views. Sorry I can’t really advise on how else you could track getting them to the screen – unless you initialised and hide their contents, then once this was ready you’d know you were just one .hidden = NO call away from showing them.