How to get which annotation bubble clicked
<p>I am creating annotation bubble buttons with the following code:</p>

<pre><code>-(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id &lt;MKAnnotation&gt;) annotation
{   
    if ([annotation isKindOfClass:[MKUserLocation class]])
        return nil;

    MKPinAnnotationView *view = [mapView dequeueReusableAnnotationViewWithIdentifier:@"ParkPlaceMark"];
    if(!view)
    {
        view=[[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"ParkPlaceMark"];

    }

    UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
    [rightButton addTarget:self action:@selector(ShowDetails:)forControlEvents:UIControlEventTouchUpInside];    
    view.rightCalloutAccessoryView = rightButton;

    [view setCanShowCallout:YES];

    return [view autorelease];
}
</code></pre>

<p>How do i get that which annotation is clicked so that i go to details screen with the id and fetch the database record based on that id to show info.</p>

<p>Please help.</p>
