jdog
jdog

Reputation: 10759

Differentiate when UIApplicationDidBecomeActiveNotification is being called

In my app, if UIApplicationDidBecomeActiveNotification is dispatched I present a modal security unlock view.

Everything is working fine except UIApplicationDidBecomeActiveNotification seems to get called whenever the iOS shows the "The App would like to use your current location" popup.

Is there a way to differentiate when UIApplicationDidBecomeActiveNotification is being called?

I need to show the security unlock view when the app returns from the background.

Upvotes: 0

Views: 172

Answers (1)

Wain
Wain

Reputation: 119031

Look at using the UIApplicationWillEnterForegroundNotification notification instead.

Upvotes: 2

Related Questions