App delegate and View Controller in iOS4

前端 未结 1 1086
天命终不由人
天命终不由人 2021-02-11 09:09

With multi-tasking in iOS4, the home button puts the app into background and when it comes back into foreground I want the View Controller to \'refresh\' (and hence viewWillAppe

1条回答
  •  难免孤独
    2021-02-11 09:46

    You could call viewWillAppear explicitly e.g.

    - (void)applicationWillEnterForeground:(UIApplication *)application {
        [viewController.view reloadInputViews];
    
        [viewController viewWillAppear];
     }
    

    0 讨论(0)
提交回复
热议问题