• 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
Annotations in MKMapView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Annotations in MKMapView


  • Subject: Annotations in MKMapView
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 2 Aug 2010 22:00:13 +0700

I have an MKMapView which has about 700 annotations which represent bus-lines.
That implies, they are not images, but are drawn as lines.

In iOS 3 this worked fine.
When the user changed the zoom level, these lines did no longer match their streets, but in mapView:regionDidChangeAnimated: I sent a redisplay message to each and all was fine again.

Now in 4.0.1 the same app crashes a lot on the device (not in the simulator).
The only way to make it work is:
1. in mapView:regionWillChangeAnimated: use removeAnnotations:
2. in mapView:regionDidChangeAnimated: use addAnnotations: again.
3. wait until the bus-lines reappear (a few seconds) then do the next change of region. (This is of course absolutely not acceptable for the finished product.)

The crash shows lines like:
CoreAnimation: failed to allocate 17668064 bytes
CoreAnimation: failed to allocate 11728192 bytes
CoreAnimation: failed to allocate 10071488 bytes
and lots of similar lines following.

Often followed by:
iBus 1(476,0x3e7037c8) malloc: *** mmap(size=122880) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

Any ideas?
What code would I need to show?

Kind regards,

Gerriet.

_______________________________________________

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

  • Prev by Date: Re: Displaying an edit field in a cell at the bottom of the tableview
  • Next by Date: [iPhone] Data protection clarification needed.
  • Previous by thread: Changing frame and title color of HUD window
  • Next by thread: [iPhone] Data protection clarification needed.
  • Index(es):
    • Date
    • Thread