I want to override the default behavior of double tapping the mapView. In my swift app I have a mapView in a static cell, so in the method cellForRowAt I've decided to add a UITapGestureRecognizer. This is how I do it: func tableView(_ myTable: UITab
I want to get result from json and save this result in NSUserDefault, after I want to use the json array saved in NSUserDefault to add multiple annotation on the MapKit. Currently to get json result, I use this : ( Swift 2.x ) let defaults = NSUserDe
Here is my code: override func viewDidLoad() { super.viewDidLoad() //Setting up the Location Manager. locationManager.delegate = self locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager.requestWhenInUseAuthorization() locationMa
I am using MKUserTrackingBarButtonItem (i.e., the compass icon) to display and track the user location in MKMapView when it is tapped. This works fine in iOS 7. In iOS 8, I started getting the following message: Trying to start MapKit location update
I'm trying to add a MKAnnotation with an icon to a map using this code for the annotation: #import <Foundation/Foundation.h> #import <MapKit/MapKit.h> #import <CoreLocation/CoreLocation.h> @interface MapItem : NSObject<MKAnnotation>
I am working on an iOS 7 app that uses mapkit, and I can route and pot directions for users. I am trying to recreate the exact same way the apple maps app works when starting a trip, with the voice coming up and narrating the steps, and the camera mo
In my app.I have a one textfield and one search button.when it user click on search button after fill up the address on textfield my app shows the result and place a pin on mapview. I am using google maps api for it. I have also added the functionali
In my app i want the user to be able to download offline map content. So I (compressed) moved all my tiles into a zip file. (I used 0 compression) The structure is like that: {z/x/y.jpg} +0 +-0 +--0.jpg +1 +-1 +--0.jpg +2 +-2 +--1.jpg So basically th
I have a viewController which contains UItableView, Map view, and segment control as in the image below: ![enter image description here][1] TestViewController.h @interface TestViewController UIViewController:<MKMapViewDelegate,CLLocationManagerDelega
in an app we are developing we are using GPS in the iPhone to monitor location changes of the user (when driving) and using them to calculate used energy, power, etc. This has been working fairly exact up to iOS 7 but ever since these values are quit
I am adding annotations and there are supposed to be 5 annotation pins on my map but only 2 appear and this error is shown: An instance 0x9d8e720 of class Annotation was deallocated while key value observers were still registered with it. Observation
New to monotouch aka xamarin ios. Trying to get a robust mapkit working that can take a number of pins. Experimenting with a basic example that I've cobbled together from a variety of sources that I could find. Getting a sporadic SIGSEGV error. Seems
I was using google API to obtain the geo co-ordinates. The code I have been using till now is as below -(CLLocationCoordinate2D) getLocationFromAddressString:(NSString*) addressStr { NSString *urlStr = [NSString stringWithFormat:@"http://maps.google.
Google Map is now available in Appstore for IOS 6. I have a application which utilises MAPKIT and WebView to show Driving direction using Google webservices. For showing Route in Native Apple MAP app, i use codes similar to this.. MKMapItem *mapItem
i have a map application that inserts map pins when the user moves to certain locations, my question is how do i count the number of times the user has passed or has been on that same place. Has in the following example: User has been on place A with
I have followed this tutorial: http://www.shawngrimes.me/2011/04/custom-map-pins-for-mapkit/#comment-193 but I can't add a title and description (see my code here http://pastebin.com/03mDLc9q)You are trying to set name and description as properties o
I have a view controller which loads a map, I have set the current location as default when the map loads, the question I have is, how do I get a url for this location, so that I can store it in a nsstring and use it at some other place, to add it to
I'm making an app and i have a view controller with a UISegmentedControl, and a want to switch between a MKMapView and a UITableView. In the MKMapView i want to display a map with the users current location, and in the TableView i want to list some d
I am working on display a map with annotation on it. What I have so far is Annotation.h #import <MapKit/MKAnnotation.h> #import <Foundation/Foundation.h> @interface Annotation : NSObject <MKAnnotation> @end MapViewController.m Annotation
I want to locate if I/friend have entered in a certain region on map using mapkit. this region could be a town or city or a place of any radius. i have not found any help regarding, any help or even a way towards the goal would be highly appreciated.
I have a coordinate region that I have determined contains the limits of what I want to show for my app. I have set this up as an MKCoordinateRegion with center point lat, longitude and a span. How do I determine if the current userLocation is inside
I want to know is it possible to show only specific region on map not the full world map using Map Kit. Like if i want to show Asia map in my application then map kit hides remaining part of the map.To handle the "map kit hides remaining part of the
Update #5 I guess it's bounty time. 100+ views and no one's taken a stab, even with the code sample I've posted. How about some reputation points! Update #4This is a pretty complicated question, so I created a new tab based project which just include
I am using a custom map annotation class for map view in iPhone. Whenever I pop my map view from navigation bar stack I usually see some warnings in console. MapAnnotation was deallocated while key value observers were still registered with it. Obser
I have the following problem: I have a number of pins on my map. After touching one, a custom popup opens and displays information. This works perfect. My problem is, that if you select the same pin twice, the popups does not open, you have to touch
I've managed to create a custom image for the pin which is dropped on a map, using MKAnnotationView... My question is how do I make this custom image draggable on the map? So I can move the image to other parts of the map?Have a look at the MKAnnotat
how can i dynamically get the latitude and longitude so that when the user keeps on walking from his current position his direction on the map should also keep on changing.How is this possibleI think you could make use of MKMapview's property showsUs
I have a map view with pins that when the user selects a pin it goes to a detail screen for that pin. I also have a table view that when the user selects an item it goes to the same type detail view. Here's the problem ... It seems to work fine in ev
I have an instance of MKMapView and would like to use custom annotation icons instead of the standard pin icons supplied by MKPinAnnotationView. So, I've setup a subclass of MKAnnotationView called CustomMapAnnotation and am overriding -(void)drawRec
I'm getting fairly frustrated with the limitations of MKMapKit. My current problem has to do with the z-ordering of annotation views, particularly as it relates to touches. If you accept the default z-order the mapkit gives you: The order appears ran