I am using Xcode 6.I have some problems when I try to get User current Location using CLLocationManager. Even I added the NSLocationWhenInUseUsageDescription
and NSLocationAlwaysUsageDescription
to Info.plist file. And also used [CLLocationManager requestWhenInUseAuthorization]
. Then also I am getting console output as
2014-10-15 11:45:15.004 MapIOS8[1916:57908] Trying to start MapKit location updates without prompting for location authorization. Must call -[CLLocationManager requestWhenInUseAuthorization] or -[CLLocationManager requestAlwaysAuthorization] first.