1 /*2 Note: IOS7 will automatically require the user to authorize your application as soon as it starts locating, but starting from IOS83 want to locate must first "oneself" "active" Request user authorization4 in iOS8, you should not only actively request authorization, but you must configure the properties in the Info.plist file to eject the authorization window .5 nslocationwheninusedescription, allowing GPS descriptions to be obtained at the front desk6 nslocationalwaysusagedescription, allows the description of GPs to be acquired in the background7 8 */9 Ten //determine if it is iOS8 One if([[Uidevice currentdevice].systemversion Doublevalue] >=8.0) A { - //This is the iOS8 system . -NSLog (@"This is iOS8"); the - //proactively require users to authorize our programs, authorization will automatically invoke the proxy method -[_mgr requestalwaysauthorization];//request foreground and background location authorization - + //[_mgr requestwheninuseauthorization];//Request Foreground Location Authorization -}
Ios8corelocation's Problem-01