






#import "OddDiskAllKinController.h"
#import "DrizzleViewController.h"

@interface OddDiskAllKinController ()

@end

@implementation OddDiskAllKinController


- (BOOL)shouldAutorotate {
    return self.topViewController.shouldAutorotate;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    return self.topViewController.supportedInterfaceOrientations;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.interactivePopGestureRecognizer.enabled = NO;
    [self setNavigationBarHidden:YES];
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:.3];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    
    CGPoint point = [[touches anyObject] locationInView:self.view];
    
    UIView *howView = self.topViewController.view;
    
    point = [howView.layer convertPoint:point fromLayer:self.view.layer];
    
    DrizzleViewController *sex = (DrizzleViewController *)self.topViewController;
    if (![howView.layer containsPoint:point]) {
        [sex twelveStrongestModifyAutoMargins:touches withEvent:event];
    }else{  
        [super touchesBegan:touches withEvent:event];
    }
}

- (void)pushViewController:(DrizzleViewController *)viewController animated:(BOOL)animated
{
    if (self.childViewControllers.count > 0) {
        viewController.greatRainButton.hidden = NO;
    }else {
        viewController.greatRainButton.hidden = YES;
    }
    [super pushViewController:viewController animated:animated];
    
}
- (void)dealloc {
    
}
@end
