Ios extension help (touch events on subview)

Hey, I’m creating ios maps extension and I can display maps just fine, however I can’t really interact with them. Even though my view is displayed on top of the openfl, openfl still intercepts all touch events (buttons behind the map can still be interacted with). Does anyone know how to pass events to my new view? Thanks.
Here is my ios code:

#include "Utils.h"
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <objc/runtime.h>

@interface MapViewController : UIViewController {

}
@end

@interface MapView : UIView<MKMapViewDelegate> {

}
@end



namespace imaps
{

    MapView *mapView;
    MapViewController *controller;
    UIViewController *root;
    MKMapView * map;

    CGRect frameIn;
    CGRect frameOut;

    void createMap()
    {
        root = [[[UIApplication sharedApplication] keyWindow] rootViewController];
        mapView = [[UIView alloc] init];

        [root.view addSubview:mapView];

        CGFloat stagewidth = [UIScreen mainScreen].bounds.size.width;
        CGFloat stageheight = [UIScreen mainScreen].bounds.size.height;
        CGFloat margin = stagewidth * 0.1f;

        map = [[MKMapView alloc] initWithFrame:
        CGRectMake(margin, margin*2, stagewidth - (margin * 2), stageheight - (margin * 5))];
        map.layer.cornerRadius = 6.0f;
        map.delegate = mapView;
        map.scrollEnabled=YES;
        map.userInteractionEnabled = YES;
        [mapView addSubview:map];

        frameIn = mapView.frame;
        frameOut = mapView.frame;
        frameOut.origin.y -= stageheight;
        mapView.hidden = YES;
    }
	void showMap()
    {
        mapView.hidden = NO;

        mapView.frame = frameOut;
        [UIView animateWithDuration:0.3
        animations:^{
        mapView.frame = frameIn;
        }];

    }
    void hideMap()
    {
        mapView.hidden = YES;

        mapView.frame = frameIn;
        [UIView animateWithDuration:0.3
        animations:^{
        mapView.frame = frameOut;
        }];
    }
}

Okay, I figured it out, I changed [root.view addSubview:mapView]; to [root.view addSubview:map]; and now it works fine :smiley: