导入包:CoreLocation.framework Mapkit.frameWork
#import <CoreLocation/CoreLocation.h>
#import <MapKit/MapKit.h>
CLLocationManagerDelegate
@property(nonatomic,strong)CLLocationManager* locationManager; //位置信息
#pragma mark -
#pragma mark - CLLocationManager delegate
//开始定位
-(void)startLocation{
[StaticTools showHUDInView:self.view HudType:MBProgressHUDModeIndeterminate withText:@"定位中"];
if (![CLLocationManager locationServicesEnabled]||[CLLocationManager authorizationStatus]==kCLAuthorizationStatusDenied) {
[StaticTools showAlertWithTag:Alert_Tag_CloseLocationServices title:nil message:@"定位功能未开启"<