I have a MKMapView that has a pin than when pressed shows the annotation's title and subtitle.
Is there a way in code to have this text shown automatically so the user does not need to click it?
If I have many pins, can they all appear as well?
You need to use the selectAnnotation message on MKMapView:
- (void)selectAnnotation:(id <MKAnnotation>)annotation animated:(BOOL)animated
Selects the specified annotation and displays a callout view for it.
This might help:
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With