I'm displaying some icons (annotations) on a map in my app by loading them into an NSMutableArray and then adding the array. It works nicely, but I'm having trouble displaying them in proper layer order.
Sometimes, icons that I've added to positionIcons last appear on top; other times, the most recent are shown below the older ones.
How can I ensure layer order?
[positionIcons removeAllObjects];
[positionIcons insertObject:<someObject> atIndex:0];
[mapView addAnnotations:positionIcons];