I have this grayView that disables the controller and makes it look inactive courtesy to a previous question I asked, but I need to detect if grayView is touched and if it touched get rid of the grayView. If anyone can help me figure out a solution to this I would deeply appreciate it. I tried using UITouchedBegan and many other stackoverflow solutions but each one didn't work. Any help will be appreciated.
grayView is an UIView.
-(void)ViewDidLoad
{
    grayView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    grayView.backgroundColor = [UIColor colorWithWhite:0.5 alpha:0.5];
    [self.navigationController.view addSubview:grayView];
}
 
     
     
    