iOS Question Detect foreground/background

JordiCP

Expert
Licensed User
Longtime User
This question may be obvious, but I can't find it

Is there a simple way to know (other than tracking the state with a variable in the app events), if a code is being executed in the foreground or in the background?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…