• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MKMapView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MKMapView


  • Subject: MKMapView
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 5 Aug 2010 14:57:17 +0700

I have an MKMapView which sometimes does:
	[ mapView addSubview: selectorView ];
and selectorView contains a UIPickerView.

1. When I interact with the pickerView, sometimes the mapView does seem to get events which are really meant for the pickerView and consequently displays annotation labels or changes the region.

I tried to do:
	mapView.userInteractionEnabled = NO;
	pickerView.userInteractionEnabled = YES;
but this also makes the pickerView unusable.

How to convince the mapView that it just should stay quiet and NOT react to user interaction while the pickerView is shown?


2. When I interact with my pickerView and the mapView makes some unwanted region changes, the memory size (Activity Monitor: Real Memory) goes way up (from normally a few megabytes to several gigabytes). This is a real problem: heavy swapping is the result (if run in Simulator) or crash (if on the device).

If there is no crash, the memory will go down eventually back to normal (usually after I change the region manually). But this takes some time.

And often I get these lines:
CoreAnimation: failed to allocate 17668064 bytes
CoreAnimation: failed to allocate 11728192 bytes
with varying absurdly high numbers.

When I run the program with the Leaks Instrument, I see "All Allocations" of 3 to 4 MB.

What can be done about this?


Kind regards,

Gerriet.

P.S. All this with 4.0.1

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: MKMapView
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: CGImage, CIImage and NSImage
  • Next by Date: Re: Partially release NSMutableData
  • Previous by thread: Re: CGImage, CIImage and NSImage
  • Next by thread: Re: MKMapView
  • Index(es):
    • Date
    • Thread