I import CoreLocation, then add locationManager.delegate = self in didFinishLaunchingWithOptions and let locationManager = CLLocationManager() out of it.
But I have this error in AppDelegate. What do I wrong?
You need to make your AppDelegate conform to CLLocationManagerDelegate.
class AppDelegate: UIApplicationDelegate, CLLocationManagerDelegate {}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With