MapKit: Need completion handlers for -setRegion:animated: and setCamera:animated:
| Originator: | futuretap | ||
| Number: | rdar://15691028 | Date Originated: | 18-Dec-2013 08:04 PM |
| Status: | Closed | Resolved: | 12-May-2014 08:26 PM |
| Product: | iOS SDK | Product Version: | 7.1 |
| Classification: | Feature (New) | Reproducible: | Not Applicable |
Proposed API: - (void)setRegion:(MKCoordinateRegion)region animated:(BOOL)animated completion:(void (^)(BOOL finished))completion - (void)setCamera:(MKMapCamera *)camera animated:(BOOL)animated completion:(void (^)(BOOL finished))completion The API should behave similarly to the UIView animation APIs where a completion handler would be called as soon as the mapView region or camera animation has been finished. The `finished` BOOL parameter would indicate whether the region animation was finished (YES) or interrupted by some user interaction (NO). This would be particularly useful to programmatically select annotations after a region update. This way we could make sure that the callout is always visible (and the mapView scrolled prior to displaying the callout if not).
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!
Engineering believes this issue has been resolved.
This can be accomplished as follows:
We are now closing this report.