On Sep 19, 2014, at 11:06 , John Tsombakos <johnt...@gmail.com> wrote:

> You also need to add items to your Info.plist file:
> 
> NSLocationAlwaysUsageDescription
> 
> and/or
> 
> NSLocationWhenInUseUsageDescription

And to clarify, these are keys for a string value. That string value gets 
displayed as detail text in the authorization dialog. I just ran into all this 
myself yesterday, and it was not at all clear that this had to be done. I don't 
know why MKMapView can't handle all this on its own.

> 
> On Sep 19, 2014, at 2:01 PM, Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote:
> 
>> 
>> So I put it into viewDidLoad of the view controller for the MapView.
>> 
>> But:
>> 
>> authorizationStatus = kCLAuthorizationStatusNotDetermined
>> locationServicesEnabled = YES
>> 
>> so I do (as recommended):
>> [ self.locationManager requestWhenInUseAuthorization ];
>> 
>> Now I would expect a panel to come up, asking the user "Do you want to allow 
>> this app to use Location Services?"
>> But nothing is seen (iOS 8.0).
>> 
>> And when I ask the manager for a location, I just get nil.
>> 
>> Later on I get: locationManager:didChangeAuthorizationStatus: 
>> kCLAuthorizationStatusNotDetermined
>> 
>> and: "Trying to start MapKit location updates without prompting for location 
>> authorization."
>> 
>> Not very useful.
>> 
>> 
>> Kind regards,
>> 
>> Gerriet.
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com
> 
> This email sent to rm...@latencyzero.com


-- 
Rick Mann
rm...@latencyzero.com



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to