点击大头针不弹气泡每次都可以响应点击事件

-(BMKAnnotationView *)mapView:(BMKMapView *)mapView
            viewForAnnotation:(HKTPointAnnotation *)routeAnnotation

{

 pAV.canShowCallout = NO;

}

-(void)mapView:(BMKMapView *)mapView didSelectAnnotationView:(BMKAnnotationView *)view
{
    if ([view isKindOfClass:[PhotoAnnotationView class]]) {
        [_tv.mapView deselectAnnotation:view.annotation animated:YES]; //设置为非选中状态
        HKTPointAnnotation *anno = (HKTPointAnnotation *)(view.annotation);
        NSLog(@"---%d",anno.type);
        //点击地图相册跳转
        if (anno.kind == 1) {
            AlbumVC *albumVC = [[AlbumVC alloc] init];
            albumVC.followId = self.followId;
            //        [self.navigationController pushViewController:albumVC animated:YES];
        }
    }
}

你可能感兴趣的:(iOS)