mkannotationview canshowcallout

mkannotationview canshowcallout

Hi,

What is the use of mkannotationview canshowcallout?

Thanks

View Answers

December 21, 2010 at 12:32 PM

Hi,

This is used when you want to show the popup when user clicks on the annotation pin.

In your annotation class you have to implement the following functions:

- (NSString *)title
{
    return @"Title";
}

// optional
- (NSString *)subtitle
{
    return @"Sub Title";
}

Thanks









Related Tutorials/Questions & Answers:
mkannotationview canshowcallout
mkannotationview canshowcallout  Hi, What is the use of mkannotationview canshowcallout? Thanks   Hi, This is used when you want to show the popup when user clicks on the annotation pin. In your annotation class you
MKMapView Change Red Pin Color
;MKMapView changes to Red Pin on Tapping This is a MKAnnotationView issue. Use MKAnnotationView instead of MKPinAnnotationView. And set the custom image. It will fix... didSelectAnnotationView:(MKAnnotationView *)view { //I think here you will be adding
Advertisements
mapview1
animated:TRUE]; } - (MKAnnotationView *)mapView:(MKMapView *)mapView
mapview
]; } - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>
how to do map in iphone?-RV
count:4]; [self.mapView insertOverlay:polyLine atIndex:0];} -(MKAnnotationView

Ads