1.添加Core Location.Framework;
2.申明委托<CLLocationManagerDelegate>;
3.创建GPS对象:locationManager = [[CLLocationManager alloc] init];
locationManager.delegate = self;
locationManager.DesiredAccuracy = KCLLocationAccuracyBest;
4.开始接收数据:[locationManager StartUpdatingLoactiong];
5.实现委托:- (void)LocationManager: didUpdateToLocation: fromLocation: