Giter Site home page Giter Site logo

fmglocation's Introduction

FMGLocation

轻松方便实现定位功能,一步搞定!!!Easy to achieve positioning function, a step!!!

####说明:本插件已适配iOS8.0-、iOS8.0、iOS9.0版本,不同版本之间,不同需求之间都有相应的配置,在使用的过程中,遇到的错误以及相应的解决办法,都在控制台打印了出来,只需要按照说明配置就OK了 This plugin has been adapted to iOS8.0, iOS9.0, iOS8.0- version, different versions, different needs between the corresponding configuration, the use of the process, encountered errors and the corresponding solution, are printed out in the console, only need to configure on OK!!

例如(example):

  2015-10-05 15:08:16.395 FMGLocationDemo[3487:190927] 如果在iOS8.0之后获取用户位置, 必须主动填写info.plist文件中的key          NSLocationAlwaysUsageDescription 或者 NSLocationWhenInUseUsageDescription
  2015-10-05 15:08:16.399 FMGLocationDemo[3487:190927] 用户还未决定
   [[FMGLocation sharedFMGLocation] getCurrentLocation:^(CLLocation *location, CLPlacemark *pl, NSString *error) {
        
        if ([error length] > 0) {
            
            NSLog(@"错误信息为:---%@",error);
            
        } else {
            
            // 位置名称
            NSLog(@"位置名称:----%@", pl.name);
            // 纬度
            NSLog(@"纬度:----%@",@(pl.location.coordinate.latitude).stringValue);
            // 经度
            NSLog(@"经度:----%@",@(pl.location.coordinate.longitude).stringValue);
            
        }
        
    }];

fmglocation's People

Contributors

mgxu avatar jonxu321 avatar

Stargazers

yeelight-牛星华 avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

niuxinghua

fmglocation's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.