I have two window app and while I present first window I would like the view in second window to load and prepare content for later in background.
I've tried to use method loadView
but Apple says you should not call this method directly.
So far I've chosen to use the view's method userInteractionEnabled
which actually implicitly
calls viewDidLoad
method.
Is there an elegant way to force ViewControllers
viewDidLoad
method to fire before it should naturally (when window is key and presented)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…