Locationservice Indicator stays “on”

前端 未结 4 1090
灰色年华
灰色年华 2020-12-15 11:57

I have a created a small app which uses location services on the iPhone. All works well, except the fact, that sometimes, the small arrow in the info-bar stays active even i

4条回答
  •  囚心锁ツ
    2020-12-15 12:08

    if you started your location manager job with

    [MyLocationManagerInstance startMonitoringForSignificantLocationChanges];
    

    then you need to stop it with:

    [MyLocationManagerInstance stopMonitoringForSignificantLocationChanges];
    

    If you force the termination of the application, applicationWillTerminate isn't called, as, for the OS point of view, it appears as a SIGKILL.

提交回复
热议问题