Questions tagged [mkmapviewdelegate]

MKMapViewDelegate is a protocol that describes events originating from an MKMapView.

MKMapViewDelegate is a protocol that describes events originating from an MKMapView. Interested classes can get messages for changes to the map's annotations, overlays, visible region, and user location updates.

For more information, see the Apple Documentation for MKMapViewDelegate.

160 questions
0
votes
1 answer

Wrong annotation views being displayed on the map

I am inserting a new kind of annotations and, differently from the previous ones, they behave crazily. When the map of an area is shown, the delegate is passed annotation belonging to a far away zone, reporting their own features. Yet they appear…
0
votes
0 answers

viewForOverlay method not being called while parsing KML

I'm using KML to show some overlays in map view. After parsing KML file I added overlay to my map view, but the map view delegate method viewForOverlay is not being called even if I set delegate property to map view. What are the possible reasons…
smily
  • 357
  • 1
  • 7
  • 18
0
votes
1 answer

MKMapViewDelegate is nota called when inside a subclass of MKMapView

I am quite new in Objective C, but learning fast. My project is quite complete and I have implemented as well classes than delegates etc etc. I am using an MKMapView to display things on a map. I also need the user to click on Pins which will give…
0
votes
1 answer

Cannot push a new view when clicking on annotation view

In my iphone app, I have a controller with a view and MKMapView. I display several annotation on the map, but when I click on the annotation view the "calloutAccessoryControlTapped" is triggered but I'm not able to push a new…
Luc
  • 16,604
  • 34
  • 121
  • 183
-1
votes
1 answer

MapKit/MKMapViewDelegate on didSelect: bottom sheet doesn't open if user location is enabled

I'm trying to rebuild Apple Maps's annotation selection behaviour on iOS. If I click on a map pin it should open a bottom sheet with further information about the place. While already having coded all basic components my bottom sheet doesn't open if…
-1
votes
1 answer

current user location not being able to be determined and zoomed in on

Im trying to get the current user location on the map view and have it be zoomed in on. This my code- #import "WhereamiAppDelegate.h" #import "WhereamiViewController.h" @implementation WhereamiAppDelegate - (BOOL)application:(UIApplication…
rahulbsb
  • 115
  • 12
-1
votes
2 answers

Swift - Making MapView callout annotation visible when pin annotation clicked by User

Please observe the linked image (bottom, below) When a user moves the map screen to where the pin ends up near the edge of the screen and then selects that pin annotation, an Apple method then moves the map screen slightly toward the center of the…
-1
votes
1 answer

is there a way of scrolling the mkmapview in swift automatically?

In my Storyboard in Swift app I have a UIViewController with MKMapView stretched to each edge of the screen. It was enough for me to import a MapKit, then I set up the delegate: class MyClass: MKMapViewDelegate { @IBOutlet weak var mapView:…
user3766930
  • 5,629
  • 10
  • 51
  • 104
-1
votes
1 answer

Callout I click on Map and appears ViewController2

I cannot see the second entry in the Map and take me to DetailViewController2. Is there any way to fix this? #import "MapViewController.h" #import "DetailViewController.h" #import "DetailViewController2.h" #import "SFAnnotation.h" //…
-1
votes
1 answer

How to get lat long with Precision iOS

I want to get the current latitude & longitude with precision (10 digits after decimal point). How can I get that?
1 2 3
10
11