iphone Programming Glossary: mkmapviewdelegate
iPhone: How to draw line between two points on MapKit? http://stackoverflow.com/questions/10598322/iphone-how-to-draw-line-between-two-points-on-mapkit PoluLine self.mapView addOverlay self.routeLine Adding the overlay alone will not render anything on the map. Your MKMapViewDelegate implementation must return an overlay for this route you ™ve just added as simply adding won't help . MKOverlayView mapView..
How to define the order of overlapping MKAnnotationViews? http://stackoverflow.com/questions/1145238/how-to-define-the-order-of-overlapping-mkannotationviews seem to speak of such a thing. iphone mapkit share improve this question Ok so for solution use method from MKMapViewDelegate void mapView MKMapView mapView didAddAnnotationViews NSArray views In this method you should rearrange AnnotationView after..
Finding Path/Route Between two points on MapKit in iPhone http://stackoverflow.com/questions/12002179/finding-path-route-between-two-points-on-mapkit-in-iphone MapDirection.h #import UIKit UIKit.h #import MapKit MapKit.h #import RegexKitLite.h @interface MapDirection UIView MKMapViewDelegate MKMapView mapView NSArray routes BOOL isUpdatingRoutes void showRouteFrom MKAnnotation f to MKAnnotation t @end MapDirection.m..
How to customize the callout bubble for MKAnnotationView? http://stackoverflow.com/questions/1565828/how-to-customize-the-callout-bubble-for-mkannotationview bubble or to give it zero size or anything else. My idea was to override selectAnnotation deselectAnnotation in my MKMapViewDelegate and then draw my own custom view by making a call to my custom annotation view. This works but only when canShowCallout..
How do I drop a pin with MapKit? http://stackoverflow.com/questions/1917383/how-do-i-drop-a-pin-with-mapkit find out where to put the pin on the map. If you want to customize your annotation view you will need to implement the MKMapViewDelegate viewForAnnotation method on your Map View Controller MKAnnotationView mapView MKMapView mapView viewForAnnotation id MKAnnotation..
Is it possible to call animatesDrop in a MKAnnotationView rather than MKPinAnnotationView?? (IPHONE) http://stackoverflow.com/questions/2139222/is-it-possible-to-call-animatesdrop-in-a-mkannotationview-rather-than-mkpinannot a custom image iphone view mkannotation share improve this question You can always do your custom animation in MKMapViewDelegate method. void mapView MKMapView mapView didAddAnnotationViews NSArray views Probably something like that you won't get the..
Why am I crashing after MKMapView is freed if I'm no longer using it? http://stackoverflow.com/questions/2188098/why-am-i-crashing-after-mkmapview-is-freed-if-im-no-longer-using-it set the map view's delegate to nil which will prevent MKMapView from sending messages to it. This is documented in MKMapViewDelegate Protocol Reference Before releasing an MKMapView object for which you have set a delegate remember to set that object ™s..
MKMapView and CLLocationManager http://stackoverflow.com/questions/2319506/mkmapview-and-cllocationmanager if this is due to the fact that the userLocation field is read only. Use the MKMapView showUserLocation YES create a MKMapViewDelegate and add the tracking when the annotation view for the user location is requested. This does not work because the annotation..
How to add more details in MKAnnotation in iOS http://stackoverflow.com/questions/2342070/how-to-add-more-details-in-mkannotation-in-ios basically a UIView that is tailored for map annotations. In that object you could have your 4 custom labels. In your MKMapViewDelegate class you implement the viewForAnnotation method CustomMapAnnotationView mapView MKMapView mapView viewForAnnotation id..
Why the CLLocationManager delegate is not getting called in iPhone SDK 4.0? http://stackoverflow.com/questions/3058927/why-the-cllocationmanager-delegate-is-not-getting-called-in-iphone-sdk-4-0 UIKit.h #import MapKit MapKit.h #import CoreLocation CoreLocation.h @interface MapViewController UIViewController MKMapViewDelegate CLLocationManagerDelegate @private MKMapView _mapView CLLocationManager _locationManager @property nonatomic strong CLLocationManager..
Multiple MKOverlays on a MKMapView lead to memory warnings http://stackoverflow.com/questions/3370328/multiple-mkoverlays-on-a-mkmapview-lead-to-memory-warnings reference overlayCache setObject circle forKey keyMarker Code that makes the overlay views #pragma mark #pragma mark MKMapViewDelegate MKOverlayView mapView MKMapView mapView viewForOverlay id MKOverlay overlay MKCircleView circleView MKCircleView alloc initWithCircle..
How to find which annotation send showDetails? http://stackoverflow.com/questions/4565197/how-to-find-which-annotation-send-showdetails the callout which will open a new view controller page note you can assign a specific call out accessory view or as MKMapViewDelegate you can implement void mapView MKMapView mapView annotationView MKAnnotationView view calloutAccessoryControlTapped UIControl..
Displaying Pin with Title (annotation) once map loads http://stackoverflow.com/questions/5589181/displaying-pin-with-title-annotation-once-map-loads UIKit.h #import MapKit MapKit.h #import MapKit MKAnnotation.h @interface FirstLocateViewController UIViewController MKMapViewDelegate UIButton dismissViewButton MKMapView mapView @property nonatomic retain IBOutlet UIButton dismissViewButton IBAction dismissViewButton..
How to change MKMapView's user-location blue dot to an image of choice? http://stackoverflow.com/questions/6293432/how-to-change-mkmapviews-user-location-blue-dot-to-an-image-of-choice iphone objective c ios mkmapview userlocation share improve this question In the viewForAnnotation method of MKMapViewDelegate probably you would be having the code like this. MKAnnotationView mapView MKMapView mapView viewForAnnotation id MKAnnotation..
How to trigger a video when a user reaches a certain location? http://stackoverflow.com/questions/6995443/how-to-trigger-a-video-when-a-user-reaches-a-certain-location NSError error Any errors are sent here @end @interface CoreLocationController NSObject CLLocationManagerDelegate MKMapViewDelegate CLLocationManager locMgr CLLocationCoordinate2D coordinate IBOutlet MKMapView worldView IBOutlet UIActivityIndicatorView.. #import MapKit MapKit.h @interface CoreLocationDemoViewController UIViewController CoreLocationControllerDelegate MKMapViewDelegate CoreLocationController CLController IBOutlet UILabel locLabel MKMapView worldView @property nonatomic retain CoreLocationController..
Customize the MKAnnotationView callout http://stackoverflow.com/questions/8018841/customize-the-mkannotationview-callout implements AnnotationProtocol to announce it wants to handle the creation of its own MKAnnotationView. That is your MKMapViewDelegate should have code like this MKAnnotationView mapView MKMapView aMapView viewForAnnotation id MKAnnotation annotation if this..
Show route between current and desired location on iPhone MapView http://stackoverflow.com/questions/8604619/show-route-between-current-and-desired-location-on-iphone-mapview best way to do this iphone path mkmapview android mapview route share improve this question in .h add delegate MKMapViewDelegate in .m file void locationManager CLLocationManager manager didUpdateToLocation CLLocation newLocation fromLocation CLLocation.. polylineWithPoints pointsArray count 2 free pointsArray MapView addOverlay routeLine MkMapView declared in .h MKMapViewDelegate MKOverlayView mapView MKMapView mapView viewForOverlay id MKOverlay overlay MKOverlayView overlayView nil MKPolylineView..
iOS - Linker Error, Duplicate Symbol http://stackoverflow.com/questions/9881721/ios-linker-error-duplicate-symbol #import MapKit MapKit.h @class BuildingViewController @interface FirstTopViewController UIViewController MKMapViewDelegate IBOutlet MKMapView _map BuildingViewController buildingVC BuildingAnnotation buildAnnotation @property nonatomic strong..
|