I have a MKMapView. Sometimes after my view controller is dismissed, I'll get a EXC_BAD_ACCESS.
I turned on NSSZombies and it looks like the MKMapView's delegate — my view controller! — is being called, despite both the MKMapView and UIViewController subclass being freed. I've checked, and my memory management is correct.
What's going on?
With the MKMapView there's an option called "Show users current location" which will automatically show a users location on the map.
I'd like to zoom into this location without adding a CLLocationManager (this seems silly if the map is already taking care of this).
The problem is, I can't find a nice event that fires when the map has figured out…
I have a detail view that includes three UIButtons, each of which pushes a different view on to the stack. One of the buttons is connected to a MKMapView. When that button is pushed I need to send the latitude and longitude variables from the detail view to the map view. I'm trying to add the string declaration in the IBAction:
-…
I am working on an iPhone application which uses MKMapView and shows userlocation. I am getting memory leaks where leaked object is NSCFArray of size 128 Bytes, GeneralBlock-16, GenralBlock-8 when is set MKMapView's showUserLocation property as TRUE. If is set it as NO then i dont get this leak. Can anyone suggest that what can be…
Hi,
In My application i am using MKMapview to display the googleMap,but it is not displaying the search field in the Map.
I have downloaded the Maps application from the Appstore in my real device and which is disaplying the seach field in the map.
can any body have any solution for displaying the search field in the Existing…
In a UIViewController I add a MKMapView to the view controlled by the controller.
- (void)viewDidLoad {
[super viewDidLoad];
CGRect rect = CGRectMake(0, 0, 460, 320);
map = [[MKMapView alloc] initWithFrame:rect];
map.delegate = self;
[self.view addSubview:map];
}
Later in the controller I have
-…
I am using an MKMapView in my iPhone application. When I load this view, the activity monitor instrument shows that the real memory of my App is increasing significantly. It keeps going up as you move the map around or zoom in and out. Once the View controller that loads this view is removed, the…
Has anyone else, who's using maps in their iOS 6 apps, noticing extremely high memory use to the point of receiving memory warnings over and over to the point of crashing the app?
I've ran the app through instruments and I'm not seeing any leaks and until the map view is created the app…
Hi,
I have a single MKMapView instance that I have programmatically added to a UIView. As part of the UI, the user can cycle through a list of addresses and the map view is updated to show the correct map for each address as the user goes through them. I create the map view once, and…
Hello.
I'm developing an iPhone application and I want to know the location on a MkMapView where the user has touch.
I have a MKMapView that fills the screen. When the user touch over the map, I need to know the location of the point the user has touched. Is that possible?
Thank…
Is there a bug in the 3.0 SDK that disables real-time zooming and intercepting the zoom-in gesture for the MKMapView? I have some real simple code so I can detect tap events, but there are two problems:
zoom-in gesture is always interpreted as a zoom-out
none of the zoom…
Is there a way to prevent an annotation in a MKMapView instance from being enabled. In other words, when the user taps the red pin on the map, is there a way to prevent it from highlighting the pin. Right now the pin turns dark when touched...
Edit: I'm using the following…
In 3.1 I've been using an "offscreen" MKMapView to create map images that I can rotate, crop and so forth before presenting them the user. In 3.2 and 4.0 this technique no longer works quite right. Here's some code that illustrates the problem, followed by my theory.
…
I am writing a little map kit app but it doesn't want to call the delegate method didaddannotationviews:
(void)mapView:(MKMapView *)mv didAddAnnotationViews:(NSArray *)views
{
//Get the first MKAnnotationView from the views returned
MKAnnotationView *annotationView…
I have a MKMapView in the view of a UIViewController. The app will crash randomly when the I pop the UIViewController off from the UINavigationController.
In the dealloc method of the UIViewController, I have already assigned the MKMapView delegate to nil as below:
-…
I'm trying to use a pretty straightforward custom map annotation view and callout - the annotation view when I create it, just adds a UIImageView as a subview to itself. That works fine.
However, when I call canShowCallout on the annotation view, An exception is…
A custom AnnotationView is updated with new coordinates. But the problem is that it visually updates only after some manipulations with MKMapView, e.g. zooming or moving.
What should I do to manually update visual position on a map?
PS. I've tried to change…
I have a method like this:
- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
Using this, can i get the coordinates?
I have a MKMapView inside a UITableView as a custom cell (don't ask ;) - don't know if it matters really), for which I register a regionDidChangeAnimated delegate method. This method gets called three times when the UITableView is loaded - once with the…
I cannot understand why my MKMapView does not want to change to satellite view. This method is called and case 1 is called I have stepped over it but it simply does not change to satellite type it always changes to standard. It only works when it goes…
I have issue with userlocation in mkmapview.
The thing is that i have navigation controller which pushes mapview , as soon as it pushes it userlocation is queried. But if user pop mapview view before userlocation animation is finished , it throws…