views:

57

answers:

0

Hello i have a problem,

i have a app with two views (one mapView with pins) and one View with textfields with datas of the pushed pin. If i click on a pin it works very good, but if i go back and click another pin, there are allways the datas of the first pin i clicked?

- (void) mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)annView calloutAccessoryControlTapped:(UIControl *)control {
name = annView.annotation.title;
[self goToViewList];

}

what can i do in this method that it overwrites the variable NAME each pin i have clicked????? i am very new in objective-c so i hope someone help me by this question!

sorry for my bad english, i am very sorry