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
1
vote
1 answer

how to handle multiple pins are going to dropped at a one longitude & latitude in iphone sdk?

I have one task to develop application with map-kit. I am getting multiple pins from server and one pin i have to drop from user current location. This user current location pin should be green & other pins which are coming from server should be in…
Hrushikesh Betai
  • 2,227
  • 5
  • 33
  • 63
1
vote
0 answers

MKPinAnnotationView and custom classes conforming to the MKAnnotation protocol

I have created the following method for determining the view for my annotations in a map view. - (MKAnnotationView *)mapView:(MKMapView *)mv viewForAnnotation:(id )annotation { if ([annotation isKindOfClass:[MKUserLocation class]])…
1
vote
1 answer

Pin annotation displaying the current location

I use the MKPinAnnotationView for pin annotation.Can i possibly display the curent address of the location as the pin annotation if i move the pin randomly on the map?
user844556
  • 91
  • 2
  • 3
1
vote
1 answer

MKPointAnnotation title not showing and annotation not draggable

I think those two are related and I'm probably doing something wrong here: First I'm overriding viewForAnnotation - in order to put my custom Image - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id)annotation { …
1
vote
2 answers

If X is a subclass of Y objective-c

What is the syntax to say if (object isObjectOfClass Class){ object.color = 1; } I'm making a map application and i want to say "if this point on the map is a branch of THIS store- set the pin picture as this"
1
vote
1 answer

[MKAnnotationView setAnimatesDrop:]: unrecognized selector sent to instance. But why?

(MKAnnotationView *) mapView:(MKMapView *)theMapView viewForAnnotation:(id )annotation { if ([annotation isKindOfClass: [MyLocation class] ]) { MKPinAnnotationView *annotationView = (MKPinAnnotationView *)…
Voloda2
  • 12,359
  • 18
  • 80
  • 130
1
vote
1 answer

How do I update/change color of a pin after it's already been placed in my mapview?

I'm making an applikation that will put pins/annotations in a mapview. When the user is getting close to a pin, I want the pin to change color. Everything works fine, the pins is placed where I want and I get an alert message when I get close…
Emil
  • 161
  • 2
  • 10
1
vote
1 answer

drawRect not called on MKPinAnnotationView subclass

I implemented a class that extends MKPinAnnotationView. I want to draw something below the pin, which I hope to achieve by taking over the drawRect:rect message. I want to do this by painting something myself first and then chaining to the…
xastor
  • 482
  • 5
  • 17
1
vote
1 answer

Swift map pin callout and param

I made a map on my iOS Application using MapKit. I added my pins to my view with a callout button which present de detail button inside the pin popup. At this time, everything is good, when I tap on the detail button, I can print some text, present…
noxo.
  • 116
  • 10
1
vote
2 answers

Mapkit Annotation type when zooming in and out?

i am working with Mapkit and i am on SDK 4.2, i am having a strange bug here, in fact i have 3 annotation types, "blue.png", red.png,black.png. I am loading these by a flux and depending on the type its will select these annotation types. Everything…
Veer
  • 232
  • 3
  • 11
1
vote
1 answer

How to find which annotation send showDetails?

How to find which annotation send showDetails? MKPinAnnotationView* customPinView = [[[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:BridgeAnnotationIdentifier]…
Voloda2
  • 21
  • 1
  • 5
1
vote
0 answers

Small touch target and can't drag MKPinAnnotationView up, but can drag every other direction?

I have a MKMapView with a draggable MKPinAnnotationView which is generally working well, but there are 2 significant issues: Once I am dragging, if I reach the left, right or bottom of the map, it seamlessly scrolls the map as you would expect.…
1
vote
1 answer

Reverse Geocoding on MKMapView by dragging Pins

I have a subclass "Location" of NSManagedObject and this class conforms to MKAnnotation. When I add a Location to a Map...the ReverseGeocoder starts. By clicking the pin I see in the callout View the address of the pin. So everything works fine. Now…
1
vote
3 answers

MKPinAnnotationView not showing title

I've had some past experience using MKMapView and MKPointAnnotation, which I used to put some pin on a map. This time I am trying to go one step further and use MKPinAnnotationView, to write a label along with some of the pins. Unfortunately, it…
Michel
  • 10,303
  • 17
  • 82
  • 179
1
vote
2 answers

assign image to annotation instead of pin

Hi Guys I am trying to replace the pin on my annotation to a custom image. I already have the images in my image.cassette list will displays 1X 2X 3X etc. but as soon as I try to call that image I get an error in my code where Xcode tries to fix my…
sabrefm1
  • 61
  • 1
  • 9