adding button to annotation bubble in mapview
<p>The following is my code for adding annotation into a mapview. This code is called in viewdidload method</p>

<pre><code>-(void)displayMYMap
</code></pre>

<p>{</p>

<pre><code>MKCoordinateRegion region = mapView.region; 
MKCoordinateSpan span; 
span.latitudeDelta=0.2; 
span.longitudeDelta=0.2; 



addAnnotation = [[[AddressAnnotation alloc] initWithCoordinate:mapCenter title:firstName SubTitle:lastName Recordid:passedRecordID]autorelease];

[mapView addAnnotation:addAnnotation];
region.span=span; 
region.center=mapCenter; 
</code></pre>

<p>}</p>

<p>I am trying to add a button to my annotation bubble. I am getting an exception while I am trying to add the button to the annotationview. </p>

<pre><code>UIButton *informationButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure ];
addAnnotation.rightCalloutAccessoryView = informationButton;
</code></pre>

<p>This is the code I have written to add the button. I cant figure out a reason for the exception.</p>
