5

I was wondering which would be faster/more efficient when it comes to taking off annotations from the map: hiding or removing. I need to remove and add 100 or so pins every time the user zooms in or out.

I can either loop through and hide all annotations using setHidden:, or just remove them using removeAnnotations:. I'm not sure which would be a better method.

jscs
  • 63,694
  • 13
  • 151
  • 195
Vadoff
  • 9,219
  • 6
  • 43
  • 39

1 Answers1

5

I believe the standard method is to remove them. Less memory overhead. Not that 100 takes up that much, but still better to remove and re-add when needed then to hide.

Bill Burgess
  • 14,054
  • 6
  • 49
  • 86