iphone - Check if iOS app is in background -


i want check if app running in background.

in:

locationmanagerdidupdatelocation {     if(app runing in background){             } } 

app delegate gets callbacks indicating state transitions. can track based on that.

also applicationstate property in uiapplication returns current state.

[[uiapplication sharedapplication] applicationstate] 

Comments