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
2 answers

Getting Directions using only Apple map

I have a mapview in my app and i am using apple map's i read here that Mapkit can provide with the direction details as on the Mapview i am using the current location and the lat/long and i want that user can get the driving directions from his…
nikesh
  • 140
  • 1
  • 15
1
vote
1 answer

How to adjust the frame of right accessor to top right in MapView annotation?

I want to add the right accessor image(cross image) to the top right corner as shown in the image below, but i am not able to get the code for it: I am using the following code but its not giving me what i need.I need the cross button at the place…
nikesh
  • 140
  • 1
  • 15
1
vote
1 answer

MKPinAnnotationView draggable option

I am using MKMapView in my iPhone app. I want to implement the pin annotation dragging feature. How can I implement this. The function setCoordinate: shows warning, MKPinAnnotationView may not responds to setCoordinate:. Please help.
Tinku George
  • 195
  • 2
  • 11
1
vote
2 answers

Why when I press the AnnotationView sometime the image disappear?

In my MapView there are multiple annotationView, each with their own image, it happens that sometimes when I press the image, it disappears and never comes back if not reloading the viewController. Why does this happen? - (MKAnnotationView…
Ortensia C.
  • 4,666
  • 11
  • 43
  • 70
1
vote
1 answer

Update coordinate property of MKAnnotation on parent viewcontroller after Touch End event?

I have written an application with a draggable annotation which I have added on top of a MKMapView. I've added a CLLocationCoordinate2D variable called myloc in my main view controller to store the coordinate (lat,lng) values whenever I drag the…
Bryan C
  • 1,594
  • 4
  • 16
  • 30
1
vote
1 answer

Rotate MKAnnotationPinView according to the device heading

In my app I'm rotating the MapView according to the device heading, I have only one annotation and i'm rotating it's pin and it's pinView too. My rotation method is inside the next function - (void)locationManager:(CLLocationManager *)manager…
Alex Guberman
  • 203
  • 1
  • 3
  • 15
0
votes
1 answer

MKPinAnnotationView - different actions in different Pins

I have a question about the MKPinAnnotationView. First of all I entered coordinates of the pins and after that called the viewForAnnotation to build them and also add them the a right button. But my question is how can I select different actions…
dsafa
  • 783
  • 2
  • 8
  • 29
0
votes
2 answers

trying to push a detail view when the right button is tapped on the annotation of mapview in xcode

i wanted to display the detail view after tapping the right button on the annotation of mapview in xcode but i could not get the view to display , my code: - (void)showDetails:(id)sender { [self.navigationController setToolbarHidden:YES…
0
votes
1 answer

MKAnnotation Custom Callout button general action -- how to know which Annotation it's coming from? (iPhone)

I'm developing a MapKit app which uses a whole bunch of MKAnnotations to mark locations. What I want is to put buttons into the callouts which the user can press to perform an action on the selected location. So far I have seen examples where you…
Alan Moore
  • 6,525
  • 6
  • 55
  • 68
0
votes
1 answer

Double selection touch on MKPinAnnotationView

Edit: changed the title from : "Double tap .." to "Double selection touch.." I need to detect at least a second touch over a MKPinAnnotationView in my app. Currently I`m able to get the first touch (I'm using kvo from here: Detecting when…
0
votes
1 answer

Not able to initialize CLLocationCoordinate2D iVar in MKAnnotation Classe

I am trying to put MKAnnotations on MKMapView. I am following the procedure that has been suggested on various available tutorials. I have created PlaceMark.h/.m file from NSobject Class as following. PlaceMark.h #import…
slonkar
  • 4,055
  • 8
  • 39
  • 63
0
votes
1 answer

MapView Drop and Drag Pin - Custom MKAnnotationView iOS 5

I kept looking for hours, trying to get and update somehting to work on iOS 5 for a drop and drag pin. I think i'm pretty close... but stock when trying to init a custom annotation. Here's my class .h @interface AnnotationView : MKAnnotationView…
Marc
  • 11,341
  • 3
  • 27
  • 30
0
votes
1 answer

Subclassing MKPinAnnotationView

I'm creating my own annotation callout by subclassing MKPinAnnotationView. Everything works great, except for when I try to add buttons inside the new callout... the buttons are never called on touch... any idea why? Thanks in advance! Code is…
Adam Storr
  • 1,438
  • 2
  • 21
  • 46
0
votes
1 answer

why it show last pin's type of call out annotation in my mapview

I am designing a map view in which i am dropping no. of pins. I have also add a custom view on every pin. Now problem is that when my map view add all pins then on map it don't show my last pin. Instead of last pin it will show only custom view…
0
votes
1 answer

How to do custom a view for MkAnnotation View As like custom cell for table view?

I making an application in which i have to implement feature like custom cell for table view. In that i have required a custom view which i can add with Mk-annotation View as we add custom cell with table view. I want to add transparent View On…
iRam11
  • 309
  • 4
  • 16