在多个位置的地图视图上显示感兴趣的位置。
MKPointAnnotation *annotation = [[MKPointAnnotation alloc] init];
annotation.coordinate = CLLocationCoordinate2DMake([[[[InterestedLocationsAry objectAtIndex:i] objectForKey:@"Location"] objectForKey:@"latitude"] floatValue], [[[[InterestedLocationsAry objectAtIndex:i] objectForKey:@"Location"] objectForKey:@"longitude"] floatValue]);
annotation.title = [[[InterestedLocationsAry objectAtIndex:i] objectForKey:@"Location"] objectForKey:@"name"];
[mapView selectAnnotation:annotation animated:YES];
[mapView addAnnotation:annotation];
它在地图视图上显示精确。在选择精确点上,它不显示 MKPointAnnotation 的弹出框。