I am using core location framework inside my app and sending updated location to server in didUpdateToLocation method and the view where i am allocating the CLLocationManager instance is the second view after login and this view is called from login view and releasing CLLocationManager in dealloc method but every time i am coming from login screen then didUpdateToLocation method calling twice and thrice depending on how many times i am coming from login view so whats the problem is and how can i avoid this?
Share
If you want to avoid multiple allocations of your CLLocationManager instance, define the instance as a property of your
appDelegateEach time you need to get this instance you will do