2011-10-06 74 views

回答

3

在您應該創建您的廈門國際銀行新的VC,並將它推到導航控制器或顯示你想要的東西的- (void)mapView:(MKMapView *)aMapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control方法。 例如:

- (void)mapView:(MKMapView *)aMapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control{ 
    NewViewController* vc = [[[NewViewController alloc] initWithNibName:@"newXib" bundle:nil] autorelease]; 
    [self.navigationController pushViewController:vc animated:YES]; 
} 

你可以找到很多教程如何創建和顯示新的意見,你應該開始淘更難。 ;)

+0

嘿,非常感謝您的回覆。我無法在網絡上的任何位置找到此信息。我怎麼知道點擊了哪個標記? – Eamorr

+0

好的,我現在明白了...... MapAnnotations * annotation = view.annotation; NSLog(@「%@」,annotation.title);非常感謝你的幫助。 – Eamorr