Search code examples
iosloadingviewwillappear

what is the function that is called when the app is appearing?


Imagine the app is running and you press the iphone button (the phone button) and you exit the app. then you tap on the app again to enter the app. My problem is that when ever the user does this I want the viewWillAppear or viewDidAppear functions to be called, but unfortunately none of these functions gets called.

I want to know if these function won't get called, then what is the function that is called when the app is appearing again?


Solution

  • How about - (void)applicationDidBecomeActive:(UIApplication *)application in your UIApplicationDelegate?