Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect app opening?

I have a Tab bar app with 3 view controllers and I use "viewWillAppear" to detect which view is opend.

When I close the app, it still works "in the background" and when I open the app again "viewWillAppear" is not detecting this opening.

Is there any other option to detect this opening? Thanks

like image 965
iWizard Avatar asked Jul 09 '26 15:07

iWizard


1 Answers

You can observe the UIApplicationWillEnterForegroundNotification or implement applicationWillEnterForeground: in your app delegate.

like image 106
omz Avatar answered Jul 11 '26 04:07

omz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!