Questions tagged [mkpinannotationview]

MKPinAnnotationView implements an MKAnnotationView to display a push pin and is the only system-provided annotation view.

MKPinAnnotationView implements an MKAnnotationView to display a push pin and is the only system-provided annotation view. It is the pin used in the Apple Maps application and enjoys widespread use in third party apps as well. Red, green, and purple pins are the only pin colors supported as of iOS 6.

For more information, see the Apple Documentation for MKPinAnnotationView.

165 questions
2
votes
0 answers

Track a device and display data with annotations in IOS

I would like to store coordinates with additional data according to the gps locations and view the coordinates in a map with pin annotations and the additional data in Callouts (Title, Subtitle). Ive already managed to get my data from my device to…
2
votes
1 answer

How to remove the first pin while dropping consecutive pins in maps in iphone?

I am new to iphone development.I have created map applications and displayed the cuurent location and drop a pin to the current location.On clicking the button "Find Me", it drops a pin in my current location.Once again if i click the "Find Me"…
Pugalmuni
  • 9,350
  • 8
  • 56
  • 97
2
votes
0 answers

Converting from MkPinAnnotation to ZSPinAnnotation so that you can have any pin color you want

This is mostly just to help future users. If you want more than the 3 basic pin colors that come with MkPinAnnotation, follow these steps. Download ZSPinAnnotation.m and .h from here You only need these two files, put the .m and .h file into your…
2
votes
1 answer

iPhone - remove pin annotations of map, but not mine

I use a MapView and I set annotations on it (purple pins) and my user location (which is a blue circle). Because the purple pin annotations will move, I have to remove and set them new to the map. I set it with: CLLocationCoordinate2D…
Tim
  • 13,228
  • 36
  • 108
  • 159
2
votes
1 answer

MapView Custom Pin Image Issue

I have changed my MapView pin image but I am getting this problem that some of the point wont change the pin image and some of them change. Where would be the problem? I have added an example. My Code: - (MKAnnotationView *)mapView:(MKMapView *)mV…
Luai Kalkatawi
  • 1,492
  • 5
  • 25
  • 51
2
votes
3 answers

MapKit custom pin annotation

I have the following files: annotation.h: #import #import @interface annotation : NSObject @property(nonatomic, assign) CLLocationCoordinate2D coordinate; @property(nonatomic, copy)…
Josh Boothe
  • 1,413
  • 4
  • 25
  • 40
2
votes
1 answer

MKPinAnnotationView not working

I would like to have a MKMapView showing annotations with disclosure-buttons which lead to a view controller like the Golden Gate Bridge annotation in this Apple sample app. I load the coordinates from a plist and the annotations appear correctly…
user2014551
  • 325
  • 5
  • 17
2
votes
1 answer

MKMapView viewForAnnotation: returning nil

I'm trying to remove a pin from a map. I have an observer on the @"selected" property of the MKPinAnnotationView so I know which object to delete. When the user taps the trash can icon and a pin is selected, this method gets called: -…
Crystal
  • 28,460
  • 62
  • 219
  • 393
2
votes
3 answers

iOS 6 maps- not animating PIN drop

I have created a custom MKAnnotation class and it has been working - until iOS 6 came out. Since then my pins get added to the apple map but now without a drop animation! Is this how it is set or there maybe an an issue with the way I'm doing…
2
votes
1 answer

MKPinAnnotationView custom image

I would like to set a custom image instead of the normal pin on a Map. I also want it to be able to be opened and add the drop annimation for each one. Any suggestion? EDIT: Here is all I have - (MKAnnotationView *)mapView:(MKMapView *)mapView…
sergiocg90
  • 489
  • 2
  • 11
  • 24
2
votes
1 answer

Annotation title cannot be shown after change the pincolor

I used this code to change the annotation's color,but after that,the title and subtitle can not be showed,how can I save this problem? The code are: - (MKAnnotationView *)mapView:(MKMapView *)mV viewForAnnotation:(id )annotation { …
Haven Lin
  • 205
  • 1
  • 9
2
votes
2 answers

Set MKPinAnnotationColorRed just for the first and last MKAnnotation on MKMapView

I've an NSArray of custom MKAnnotation, i need to set a red pin color for the first/last annotation, otherwise set a green pin. The program does not behave as i want, the green pins are associated each time with two different annotations in a random…
Mat
  • 7,613
  • 4
  • 40
  • 56
1
vote
1 answer

Avoiding MapView Pin-Clumping?

I am adding pins to a MKMapView using MKPinAnnotation view and was wondering if there is a way to stop pin-clumping (i.e. all the pins showing when zoomed out). Is there a way to do this using the API or do I have to manually filter the annotations…
fuzzygoat
  • 26,573
  • 48
  • 165
  • 294
1
vote
1 answer

How add pin on map?

I have a view in which i have a map. On that view i have a tool bar. In tool bar i have a button for drop pin on map. Now i want to get methods for detecting pin drop and latitude and longitude of that point. For example when user click on button…
iRam11
  • 309
  • 4
  • 16
1
vote
1 answer

How get latiude and longitude of point?

I am developing an iPhone Application in which i have provide Pin Annotation button on tool bar. When user click on button then pin will drop on center of map view. Now i want that user move that pin and place at their desired place and i will get…