首页 > 代码库 > MKMapViewDelegate
MKMapViewDelegate
Responding to Map Position Changes
- (void)mapView:(MKMapView *)mapView regionWillChangeAnimated:(BOOL)animated- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated
Loading the Map Data
- (void)mapViewWillStartLoadingMap:(MKMapView *)mapView- (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView- (void)mapViewDidFailLoadingMap:(MKMapView *)mapView withError:(NSError *)error- (void)mapViewWillStartRenderingMap:(MKMapView *)mapView- (void)mapViewDidFinishRenderingMap:(MKMapView *)mapView fullyRendered:(BOOL)fullyRendered
Tracking the User Location
- (void)mapViewWillStartLocatingUser:(MKMapView *)mapView- (void)mapViewDidStopLocatingUser:(MKMapView *)mapView- (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation- (void)mapView:(MKMapView *)mapView didFailToLocateUserWithError:(NSError *)error- (void)mapView:(MKMapView *)mapView didChangeUserTrackingMode:(MKUserTrackingMode)mode animated:(BOOL)animated
Managing Annotation Views
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
Dragging an Annotation View
- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)annotationViewdidChangeDragState:(MKAnnotationViewDragState)newState fromOldState:(MKAnnotationViewDragState)oldState
Selecting Annotation Views
- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view- (void)mapView:(MKMapView *)mapView didDeselectAnnotationView:(MKAnnotationView *)view
Managing the Display of Overlays
- (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id<MKOverlay>)overlay- (void)mapView:(MKMapView *)mapView didAddOverlayRenderers:(NSArray *)renderers- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id<MKOverlay>)overlay- (void)mapView:(MKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews
MKMapViewDelegate
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。