Re: MKMapView: Can't keep annotations from flashing during an update. Ideas?
Re: MKMapView: Can't keep annotations from flashing during an update. Ideas?
- Subject: Re: MKMapView: Can't keep annotations from flashing during an update. Ideas?
- From: Gavin Stokes <email@hidden>
- Date: Fri, 29 Jun 2012 00:59:07 -0700
On Tue, Jun 26, 2012 at 7:38 PM, Joe Wollard <email@hidden> wrote:
> Out of curiosity, why are you manually removing them in the first place?
> MKMapView should be handling that logic for you as I understand it. If its
> for performance, the docs say to make sure you dequeue the MKAnnotationView
> instead of creating a new one when possible so that it can reuse the views
> intelligently.
>
Hm, I don't know how it would handle it automatically. If the user shifts
the map at all, I requery for all markers within the boundaries of the map.
Eventually I'd like to retain the markers that are in common between
queries and only refresh the changed ones, but for now I'm totally
refreshing the view.
Right now I'm only dealing with 3000 or so markers at most, but paring them
down and aggregating within a certain pixel range is what I was intending
to do.
I'm going to check out the WWDC materials Conrad recommended.
Thanks, guys!
Gavin
_______________________________________________
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