Didupdatetolocation stop updating location
After activating one or more services, the location manager notifies your delegate object with the results.You can then use the results to update other parts of your app.If we run the Location Manager in the background, running all the time without a break.This method is especially demanding on the battery, and do not always need to detect location continuously.
A few minutes later, i OS then receives a location update, and respawns your app, letting it know it respawned due to a location service.Often we need to know the location of the specified interval.i OS has several options how to correctly run the application in the background. We’ll use the one that your application will use and which we need.In this case, we have to think about the life of the application.
The application runs in the background and during idle stops working.
Location Controller.m : (Location Controller*)shared Instance - (id)init - (void) start Monitoring Significant Location Changes - (void) stop Monitoring Significant Location Changes -(void) start - (void)location Manager:(CLLocation Manager *)manager did Update To Location:(CLLocation *)new Location from Location:(CLLocation *)old Location - (void)location Manager:(CLLocation Manager*)manager did Fail With Error:(NSError*)error App Delegate.h : @interface App Delegate : NSObject App Delegate.m : - (BOOL)application:(UIApplication *)application did Finish Launching With Options:(NSDictionary *)launch Options -(void) application Did Enter Background:(UIApplication *) application -(void) application Did Become Active:(UIApplication *) application Using your classes, this is what I would do.