0

I need to hide the Location service Popup window. I am using ALAsset library in my project. So one person told me to comment the below code from my project: (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation or "startUpdatingLocation and stopUpdatingLocation".

I searched this code in my project and didn't find it. I think it is in ALAssetLibrary Framework. How can I access this delegate and comment it?

Cœur
  • 32,421
  • 21
  • 173
  • 232
Christina
  • 4,658
  • 10
  • 52
  • 81

1 Answers1

0

The code you posted is from the CoreLocation framework. However, if you do not see it in your project, that means that, simply stated, it's not there! If you do not use in any way CoreLocation, there is no way that the alert you refer to may appear. So verify if in the Frameworks group in your project you have CoreLocation.framework, and also search for the following header:

#import <CoreLocation/CoreLocation.h>

If you find the header, then it is possible that the class importing it is also using it. For this to be true, you must also find in the class a CLLocationManager object.

Massimo Cafaro
  • 25,154
  • 14
  • 76
  • 92