Force viewDidLoad to fire on iOS

后端 未结 4 980
粉色の甜心
粉色の甜心 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:42

    Swift 2.0, with same result of @Carl Veazey's solution:

    let viewController = MyCustomViewController()
    _ = viewController.view
    

提交回复
热议问题