1.在Info.plist中加入两个缺省没有的字段
NSLocationAlwaysUsageDescription
NSLocationWhenInUseUsageDescription
2.初始化
_locService.delegate = self;
主要是这个设置代理卸载viewWillAppear中 更新回调才不会有问题;
建议:将次初始化方式不要在appdelegate 中 ,放在root vc中;
1.在Info.plist中加入两个缺省没有的字段
NSLocationAlwaysUsageDescription
NSLocationWhenInUseUsageDescription
2.初始化
_locService.delegate = self;
主要是这个设置代理卸载viewWillAppear中 更新回调才不会有问题;
建议:将次初始化方式不要在appdelegate 中 ,放在root vc中;