Force viewDidLoad to fire on iOS

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

    You can create a global instance for that controller(May be in AppDelegate) and call the method you want to perform the action for. Then While pushing to that controller don't create a new instance Just use the instance you have created for global use.

提交回复
热议问题