Skip to content

serisjam/JCLocationManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

JCLocationManager

JCLocationManager是一个全局位置管理器 ##使用全局定位器

JCLocationGeocoder *geocoder = [JCLocationGeocoder sharedInstance];

[geocoder geocode:^(BOOL success){
    NSLog(@"%@", geocoder.currentLocation);
}];

##通过KVO新建定位器定位 JCLocationGeocoder *geocoder = [JCLocationGeocoder sharedInstanceForKey:@"ViewController"];

[geocoder reverseGeocode:^(BOOL success) {
    if(success) {
        NSLog(@"%@", geocoder.currentLocation);
        NSLog(@"%@", geocoder.locationPlacemark);
    }
    else {
        NSLog(@"%@", geocoder.error.localizedDescription);
    }
}];

About

JCLocationManager是一个全局位置管理器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published