Как я могу получить событие в MapView на UIViewController, GMS MAP IOS SDK - PullRequest
0 голосов
/ 10 октября 2019
  1. Я установил VC.view = mapView в VC.loadView Метод
  2. Затем я нажимаю на карту, я не могу получить событие в touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event)

Что я могусделать так, чтобы я смог получить мероприятие в ВК?

- (void) loadView{
    [super loadView];
     *******
    GMSMapView *mapView = [GMSMapView mapWithFrame:self.view.frame camera:camera];
    mapView.myLocationEnabled = NO;
    mapView.delegate = self;
    mapView.settings.consumesGesturesInView = NO;
    self.view = mapView;
    self.mapView = mapView;
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    NSLog(@"touchesBeganxxx");
}
...