Apple has gone the extra mile to make sure the user is explicitly granting your app permission to use the iPhone location services. There are just a few simple steps to go through to get your app setup correctly.
First, add two keys to your info-plist. These are case sensitive and do not appear as a standard entry that you can select. Add both keys so you later have the option of calling either one. Make sure everything is spelled correctly and has the correct “camel case”, otherwise the request for authorization will be ignored.
NSLocationWhenInUseUsageDescription
NSLocationAlwaysUsageDescription