Просмотр исходного кода

1.修改iOS Apex Mobile Ship Map当前点复用后不正确。

Pen Li 7 лет назад
Родитель
Сommit
59c13c846b
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      Apex Mobile/Apex Mobile/ShipMap/AMShipMap.m

+ 8 - 0
Apex Mobile/Apex Mobile/ShipMap/AMShipMap.m

@@ -119,7 +119,13 @@ typedef enum {
         return;
     }
     [self.mapView removeAnnotations:self.mapView.annotations];
+    
     NSDictionary *locationInfo = annotation;
+    if (_currentAnnotaion) {
+        [self stopTwinkle];
+        _currentAnnotaion.alpha = 1.f;
+        _currentAnnotaion = nil;
+    }
     
     // pol,pod,poe,por,origin,destination,current
     if (locationInfo) {
@@ -173,6 +179,8 @@ typedef enum {
             [self moveToLocation:pod];
         }
     }
+    
+    [self startTwinkle];
 }
 
 #pragma mark - Twinkle Current