Location services don't stop when application is terminated

前端 未结 7 1311
感动是毒
感动是毒 2021-01-04 18:28

I\'m currently developing an iPhone application which needs location services for various use including AR.

I test everything on simulator and on my iPhone 3GS and e

7条回答
  •  伪装坚强ぢ
    2021-01-04 19:05

    I ran into this same exact issue when using the region monitoring tools. It didn't matter what I did to disable the regions, the arrow remained. I did finally solve the issue by cleaning up the calls to locationManager. If you are closing your view and don't need the location manager, set it to nil and/or release it. If you are monitoring location in the background, it will stay up there, but if not, make sure you are cleaning up all your location monitoring.

    It seems like it is a bug, but as I found out, it is not. Just requires a bit more cleanup.

提交回复
热议问题