iOS Question Detect foreground/background

JordiCP

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

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?
 
Top