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

Merge pull request #404 from sunXiChun/master

Update DoraemonGPSViewController.m
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
if (_operateView.switchView.on) { if (_operateView.switchView.on) {
CLLocationCoordinate2D coordinate = [[DoraemonCacheManager sharedInstance] mockCoordinate]; CLLocationCoordinate2D coordinate = [[DoraemonCacheManager sharedInstance] mockCoordinate];
if (coordinate.longitude>0&&coordinate.latitude>0) { if (coordinate.longitude != 0 && coordinate.latitude != 0) {
[_mapCenterView hiddenGPSInfo:NO]; [_mapCenterView hiddenGPSInfo:NO];
[_mapCenterView renderUIWithGPS:[NSString stringWithFormat:@"%f , %f",coordinate.longitude,coordinate.latitude]]; [_mapCenterView renderUIWithGPS:[NSString stringWithFormat:@"%f , %f",coordinate.longitude,coordinate.latitude]];
[self.mapView setCenterCoordinate:coordinate animated:NO]; [self.mapView setCenterCoordinate:coordinate animated:NO];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册