title: How to add Coordinates to CLLocationCoordinate2D from Dynamic NSMutableArray?
body: <p>I have a MapView in which I would like to add annotations and a route from defined coordinates that I add from a Textfield and store in an NSMutableArray.</p>
  
  <p>Now I'm able to show the route from multiple coordinates but only when I insert them in my code as follow :</p>
  
  <pre><code>-(void)loadMap{
  
      int Coordinates;
      //MAP
      CLLocationCoordinate2D coordinateArray[Coordinates];
      coordinateArray[0] = CLLocationCoordinate2DMake(LatA, LongA);
      coordinateArray[1] = CLLocationCoordinate2DMake(LatB, LongB);
      coordinateArray[2] = CLLocationCoordinate2DMake(LatC, LongC);
      coordinateArray[3] = CLLocationCoordinate2DMake(LatD, LongD);
  
  
      self.routeLine = [MKPolyline polylineWithCoordinates:coordinateArray count:Coordinates];
      [MapViewHome setVisibleMapRect:[self.routeLine boundingMapRect]]; //If you want the route to be visible
      [MapViewHome addOverlay:self.routeLine];
      MapViewHome.mapType = MKMapTypeHybrid;
  
      [self zoomToFitMapAnnotations:MapViewHome];
  }
  </code></pre>
  
  <p>To Add Annotations I do this:</p>
  
  <pre><code>-(MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id&lt;MKOverlay&gt;)overlay
  {
      if(overlay == self.routeLine)
      {
          if(nil == self.routeLineView)
          {
              self.routeLineView = [[MKPolylineView alloc] initWithPolyline:self.routeLine];
              self.routeLineView.fillColor = [UIColor purpleColor];
              self.routeLineView.strokeColor = [UIColor purpleColor];
              self.routeLineView.lineWidth = 5;
  
          }
  
          return self.routeLineView;
      }
  
      return nil;
  }
  
  -(void)AddAnotations{
  
  
      DeparturePoint = [[MKPointAnnotation alloc] init];
      DeparturePoint.coordinate = CLLocationCoordinate2DMake(LatA, LongA);
      DeparturePoint.title = [NSString stringWithFormat:@"A"];
      [MapViewHome addAnnotation:DeparturePoint];
  
      ArrivalPoint = [[MKPointAnnotation alloc] init];
      ArrivalPoint.coordinate = CLLocationCoordinate2DMake(LatB, LongB);
      ArrivalPoint.title = [NSString stringWithFormat:@"B"];
  
      [MapViewHome addAnnotation:ArrivalPoint];
  
      C = [[MKPointAnnotation alloc] init];
      C.coordinate = CLLocationCoordinate2DMake(LatC, LongC);
      C.title = [NSString stringWithFormat:@"C"];
  
      [MapViewHome addAnnotation:C];
  
      D = [[MKPointAnnotation alloc] init];
      D.coordinate = CLLocationCoordinate2DMake(LatD, LongD);
      D.title = [NSString stringWithFormat:@"D"];
  
      [MapViewHome addAnnotation:D];
  
  
  
  }
  </code></pre>
  
  <p><strong>NOW I would like to get Insert my Dynamic NSMutableArray in the LoadMap function in order to refresh the mapView and get a longer Route ! Any Idea ?</strong></p>