문제

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.

도움이 되었습니까?

해결책

Look at using the UIApplicationWillEnterForegroundNotification notification instead.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top