get user-authorized user Privacy protection
Map Location Example:
//Import a positioning frame
#import<CoreLocation/CoreLocation.h>
@interfaceViewcontroller() <Cllocationmanagerdelegate>
//Set anchored objects
@property(Nonatomic,Strong) cllocationmanager* Maneger;
@end
@implementationViewcontroller
- (void) Viewdidload {
[SuperViewdidload];
//When usingIOS8You need to ask for authorization when locating, andInfo.plistAdd fields inNslocationalwaysusagedescriptionDescription of the Request user authorization
IOS7Just need to be inInfo.plistAdd fields inPrivacy-location Usage DescriptionDescription of the Request user authorization
//No need to write the following code
If(IOS8) {
[Self. ManegerRequestalwaysauthorization];//Requesting user authorization
}
// open position
[self. Manegerstartupdatinglocation];
}
IOS get user-authorized user privacy protection-map targeting