title: How to add a Map annotation on MKMapView?
body: <p>Hey, im trying to add an annotation on my map. How can i do it?</p>
  
  <p>Heres my code:</p>
  
  <pre><code>- (void)abreMapa:(NSString *)endereco {
  
  NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@&amp;output=csv", 
                         [endereco stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
  NSString *locationString = [NSString stringWithContentsOfURL:[NSURL URLWithString:urlString]];
  NSArray *listItems = [locationString componentsSeparatedByString:@","];
  
  double latitude = 0.0;
  double longitude = 0.0;
  
  if([listItems count] &gt;= 4 &amp;&amp; [[listItems objectAtIndex:0] isEqualToString:@"200"]) {
      latitude = [[listItems objectAtIndex:2] doubleValue];
      longitude = [[listItems objectAtIndex:3] doubleValue];
  }
  else {
      //Show error
  }
  
  CLLocationCoordinate2D coordinate;
  coordinate.latitude = latitude;
  coordinate.longitude = longitude;
  myMap.region = MKCoordinateRegionMakeWithDistance(coordinate, 2000, 2000);
  
  [self.view addSubview:mapa];
  
  
   }
  </code></pre>
  
  <p>Thanks!</p>