Dragged map annotations not moving with map
| Originator: | vinnycoyne | ||
| Number: | rdar://14855318 | Date Originated: | 28-Aug-2013 |
| Status: | Duplicate of 14607816 (Open) | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 7 |
| Classification: | SErious Bug | Reproducible: | Always |
Summary: After a map annotation is dragged, it no longer moves with the map view and is instead locked into the current position on the UI. Steps to Reproduce (see attached sample project): 1. Create a map view and add some custom annotations, with a custom annotation view. 2. Make sure that the annotations are draggable. 3. Drag an annotation to a different location and drop. 4. Pan/scroll the map view. Expected Results: The dropped annotation should move with the map, maintaining its correct position on the map. Actual Results: The dropped annotation does not move at all, and is fixed on-screen, even if the coordinate it was dropped to moves off-screen. Regression: Notes: Sample project attached: http://appsandwich.com/openradar/MapAnnotations.zip Investigating further, it seems that allocing a new MKAnnotationView subclass in mapView:viewForAnnotation: instead of using the dequeueReusableAnnotationViewWithIdentifier: method fixes the issue. Not ideal, but it'll provide a workaround for the moment.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!