title: Iphone CLLocationCoordinate2D
body: <p>I am new at iphone and I have a problem.</p>
  
  <p>I have this code</p>
  
  <pre><code>for (int i=0; i&lt;2; i++) {
      Datos *datos = (Datos *)[arr_datos objectAtIndex:i];
      CLLocationCoordinate2D coord;
      AnnotationItem *annotationItem = [[AnnotationItem alloc] init];
      coord.latitude =[datos.latitud doubleValue];
      coord.longitude = [datos.longitud doubleValue];
  
      NSLog(@"coord %f",coord.longitude);
      NSLog(@"coord %f",coord.latitude);
      [annotationItem setCoordinate:coord];
      //[annotationItem setEstacion:estacion];
  
      [mapView_ addAnnotation:annotationItem];
      [annotationItem release];
  
  }
  </code></pre>
  
  <p>The problem that it doesn't done anything</p>
  
  <p>But if i change the <code>coord.latitude=40.444</code> and <code>coord.longitude=-3.700;</code> </p>
  
  <p>this gives me what I want, but I don't want this, because I have an array with many latitudes and longitudes. Can anyone help me with this? when i put <code>coord.longitude=[datos.longitude floatValue];</code>, it doesn't work?</p>
  
  <p>I'm using Xcode 3.2.2</p>
  
  <p>Thanks and forgive me english.</p>