I want to run all that i do in my function :
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
}
in the background. I have my page with many elements and i want that the load of the map don't block the utilisation of the application. When the application did load, the map is initialized and the user must wait few second for the load of the map. I know that we can do something in the background with
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
[self doWorkInBackground];
});
but i don"t with the locationManager. So i want that the application load without the map, and when the map finish loading it appear on the application. Could you help me ? Thanks.