How to show different image on all the annotation pins on map?
<p>I have two locations, one starting point and another end point, on these two points i want to add two different pin annotation</p>

<p>this is my code, the problem is i m getting the same image on both the locations</p>

<p><strong>location is &lt;+47.45025000,-122.30881700>
and location1 is &lt;+47.62212000,-122.35410000></strong></p>

<pre><code>- (MKAnnotationView *)mapView:(MKMapView *)mapViewer viewForAnnotation:(id &lt;MKAnnotation&gt;)annotation{

    static NSString *mapIdentifier=@"mapIdentifier";

    MKAnnotationView *myAnnotation=[mapViewer dequeueReusableAnnotationViewWithIdentifier:mapIdentifier];
    CLLocationCoordinate2D parkCllocation=CLLocationCoordinate2DMake([_tripDetails[@"park_lat"] doubleValue], [_tripDetails[@"park_long"] doubleValue]);

    MKPointAnnotation *jauntAnnotationPark =[[MKPointAnnotation alloc] init];
    // jauntAnnotationPark.image = [UIImage imageNamed:@"pinks.jpg"];
    jauntAnnotationPark.coordinate=parkCllocation;

    CLLocationCoordinate2D orginCllocation=CLLocationCoordinate2DMake([_tripDetails[@"origin_lat"] doubleValue], [_tripDetails[@"origin_long"] doubleValue]);

    MKPointAnnotation *jauntAnnotationOrgin =[[MKPointAnnotation alloc] init];
    jauntAnnotationOrgin.coordinate=orginCllocation;
    CLLocation *location = [[CLLocation alloc] initWithLatitude:[_tripDetails[@"origin_lat"] doubleValue] longitude:[_tripDetails[@"origin_long"] doubleValue]];

    CLLocation *location1 = [[CLLocation alloc] initWithLatitude:[_tripDetails[@"park_lat"] doubleValue] longitude:[_tripDetails[@"park_long"] doubleValue]];

    myAnnotation = [[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:mapIdentifier];

    check=[[NSMutableArray alloc]initWithObjects:location,location1, nil];

    for (NSString *location in check)
    {

        int i;            
        myAnnotation.image=[UIImage imageNamed:@"pin7@2x.png"];

    }

    if (!myAnnotation) {

        myAnnotation = [[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:mapIdentifier];

}
    else {
        myAnnotation.annotation=annotation;
    }

    return myAnnotation;
</code></pre>

<p>}</p>