I\'m testing out the MapKit framework on the iPhone and would really much like to switch the standard pin that displays a location to an image called \"location.png\".
in.h file:
float address_latitude;
float address_longitude;
- (void)viewDidLoad
{
CLLocationCoordinate2D coord1 = CLLocationCoordinate2DMake(address_latitude,address_longitude);
MKCoordinateSpan span = MKCoordinateSpanMake(0.0, 0.0);
MKCoordinateRegion region1 = {coord1, span};
MKPointAnnotation *annotation1 = [[MKPointAnnotation alloc] init];
[annotation1 setTitle:@"Driver"];
[annotation1 setCoordinate:coord1];
[_map setRegion:region1];
[_map addAnnotation:annotation1];
}