未验证 提交 ffaaf898 编写于 作者: Y yixiangboy 提交者: GitHub

Merge pull request #299 from goodleixiao/master

因GPS低版本,缺少方法导致的崩溃
......@@ -235,6 +235,15 @@ monitoringDidFailForRegion:(nullable CLRegion *)region
}];
}
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation {
NSString *key = [NSString stringWithFormat:@"%p_delegate",manager];
id<CLLocationManagerDelegate> delegate = [_locationMonitor objectForKey:key];
if ([delegate respondsToSelector:@selector(locationManager:didUpdateToLocation:fromLocation:)]) {
[delegate locationManager:manager didUpdateToLocation:newLocation fromLocation:oldLocation];
}
}
-(void)dispatchLocationUpdate:(CLLocationManager *)manager locations:(NSArray*)locations{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册