Stop CLLocationManager when user stops app using Fast App Switcher
I am developing an iOS Application which uses CLLocationManager to get GPS Data.

Whats a proper way to stop CLLocationManager when the user press home button and then kills the app using fast app switcher? 

How can I stop the CLLocationManager then to stop polling for GPS data? Does anybody knows a good way to achieve this, cause normally I cant execute any code when the user kills the application....




Stop CLLocationManager when user stops app using Fast App Switcher
===

I am developing an iOS Application which uses CLLocationManager to get GPS Data.

Whats a proper way to stop CLLocationManager when the user press home button and then kills the app using fast app switcher? 

How can I stop the CLLocationManager then to stop polling for GPS data? Does anybody knows a good way to achieve this, cause normally I cant execute any code when the user kills the application....



