iOS8 then you write the location authorization yourself, otherwise there is no location permission.
Calling code:
if ([[[Uidevice Currentdevice] systemversion] doublevalue] > 8.0)
{
// Set Location Permissions iOS8 only make sense
[Locationmanager requestwheninuseauthorization];// Front Desk Location
//[Locationmanager requestalwaysauthorization];// simultaneous positioning of front and rear stations
}
[Locationmanager startupdatinglocation];
and then in Info.plist corresponding default fields are added to the , the value is set to YES
nslocationwheninuseusagedescription// allow GPS description to be obtained at the front desk
nslocationalwaysusagedescription// allow access in front and background GPS the description
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
iOS Development tutorial--xcode6,cllocationmanager Unable to locate the solution