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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to