點擊資訊視窗事件

點擊資訊視窗事件

點擊資訊視窗觸發事件,於點擊資訊視窗時觸發,點擊資訊視窗觸發事件程式範例說明如下:

- (void)mapView:(TGMapView *)mapView_ didTapInfoWindowOfMarker:(id<TGMarker>)marker  //點擊資訊視窗時觸發事件

{

UIAlertView * alert = [[UIAlertView alloc]initWithTitle:[marker title]

message:[marker snippet]

delegate:nil

cancelButtonTitle:@"ok"

otherButtonTitles: nil];

[alert show];

}

回到上方