Core Location Best Placement and User Interruption

Posted by b.dot on Stack Overflow See other posts from Stack Overflow or by b.dot
Published on 2010-03-19T22:25:07Z Indexed on 2010/03/19 22:31 UTC
Read the original article Hit count: 508

Hi All,

My application uses Core Location in three different views. It's working perfectly. In my first view, I subclass the CLLocationManager and use protocol methods for location updates to my calling class. Before I install the framework and code in my other classes, I was wondering:

Is the protocol method the best way?

What happens to the Core Location execution if the user exits the view or quits the app while it's trying to get a location fix? Is the location task terminated with the GPS system turned off immediately?

If the user simply switches to another view, is it OK to assume that I can start Core Location in the next view without regard to the last?

Where should the first update location call be placed. Should the application delegate instantiate the CLLocation Manager class using protocol so that it can update any of the views chosen or should each class instantiate the manager.

Any feedback would be appreciated.

Thanks.

© Stack Overflow or respective owner

Related posts about core-location

Related posts about protocols