Force viewDidLoad to fire on iOS

后端 未结 4 975
粉色の甜心
粉色の甜心 2020-12-14 17:41

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

4条回答
  •  时光取名叫无心
    2020-12-14 18:46

    You can just call [viewController view];.

    The documentation for UIViewController explains how the view property is lazy-loaded and that viewDidLoad is called after the view is loaded.

提交回复
热议问题