Skip to content

ZacksTsang/ZTCircleMapPinView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZTCircleMapPinView

show the map pin view to center view what inspired by CityGuide

Preview Preview Preview Preview Preview

#GET pod 'ZTCircleMapPinView'

#IOS Require ios5 and above

#Usage ##First make an annotation from ZTSampleHelpAnnotation ##Second make a annotionView what you want [just like the ZTContentView] ##Third overwrite the method of ZTMapView

- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation
{

   if ([annotation isKindOfClass:[ZTAnnotation class]]) {
    
    _mapView.detailView = (ZTAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:@"DetailsAnnotationView"];
    //        _detailView=nil;
    
    if (!_mapView.detailView) {
        _mapView.detailView = [[ZTAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"DetailsAnnotationView"];
        
        [_mapView.detailView addCenterView:[[ZTContentView alloc] init] andRadius:30];
    }
    
    
    
    
      [_mapView showCirclePinView];
    
    
     return _mapView.detailView;
    }


   return nil;
}

About

show the map pin view to center view what inspired by CItyGuide

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published