title: Reading off annotations of MKMapViews in NSArray
body: <p>I am trying to find the coordinates of an annotation in many MKMapViews in this way:</p>
  
  <pre><code>NSMutableArray *latitudes = [NSMutableArray array];
  
  for (MKMapView *map in MapViewArray)
  {
    NSString *latitude = [NSString stringWithFormat:@"%.2f", [map.annotations lastObject].coordinate.latitude];                       
    [latitudes addObject: latitude];
  }
  
  NSMutableArray *longitudes = [NSMutableArray array];
  
  for (MKMapView *map in MapViewArray)
  {
       NSString *longitude = [NSString stringWithFormat:@"%.2f", [map.annotations lastObject].coordinate.latitude];
  
  
      [longitudes addObject: longitude];
  }
  </code></pre>
  
  <p>This code though gives me this error:</p>
  
  <pre><code>property 'coordinate' not found on object of type id
  </code></pre>
  
  <p>How can I solve it??</p>
  
  <p>The map views in the array are of this type:</p>
  
  <pre><code>@property (nonatomic, retain) IBOutlet MKMapView *mapView2;
  </code></pre>