






#import "NegateBordersViewController.h"
#import "WeekLayerManager.h"
#import "BlendSobView.h"
#import "UIColor+MapColor.h"
#import "UIDevice+HisDevice.h"
#import "UIImage+EraImage.h"
#import "PartnerPubConfig.h"


@implementation NegateBordersViewController

- (void)dealloc {
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = BadMeanSame.variationTelephotoOuncesMainEvictionDown ? [UIColor streetFlipBeforeListAmountEntropy:BadMeanSame.variationTelephotoOuncesMainEvictionDown]:UIColor.whiteColor;

    self.polarSonYet = self.burmeseFive;
    [BlendSobView useOutlet];
    

    self.theFaxPause.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.theFaxPause mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sayCapsPrior) name:BadMeanSame.clockwiseSun.centralSaturatedSpeechExtrinsicCervicalDone object:nil];
}

- (void)sayCapsPrior {
    [self.theFaxPause reload];
}


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self barPowerSessionsPressureScore];
}

//- (void)viewDidAppear:(BOOL)animated {


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([BadMeanSame oldUnderlineRenderWalkSnapName] && PartnerPubConfig.shared.prefixedGallonEggRectanglePromotion.makePeerSum.segmentsLog) {
        [BlendSobView unionFind];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)cloudBigMathSize {
    UIWindow *pushLawWindow = [[WeekLayerManager shared] geometricFaxWindow];
    UIEdgeInsets safe = pushLawWindow.safeAreaInsets;
    CGFloat linkKilohertz = 0;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        if (![UIDevice beatFree] || [UIDevice yellow]) {//无刘海
            linkKilohertz = UIScreen.mainScreen.bounds.size.height*BadMeanSame.sinUnknownProxiesYellowSlant;
        }else {
            linkKilohertz = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*BadMeanSame.sinUnknownProxiesYellowSlant;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, linkKilohertz);
        
    }else { 
        if (![UIDevice beatFree] || [UIDevice yellow]) {//无刘海
            linkKilohertz = UIScreen.mainScreen.bounds.size.width * BadMeanSame.sinUnknownProxiesYellowSlant;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                linkKilohertz = (UIScreen.mainScreen.bounds.size.width - safe.left) * BadMeanSame.sinUnknownProxiesYellowSlant;
            }else {
                linkKilohertz = (UIScreen.mainScreen.bounds.size.width - safe.right) * BadMeanSame.sinUnknownProxiesYellowSlant;
            }
        }
        return CGSizeMake(linkKilohertz, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)barPowerSessionsPressureScore {
    UIWindow *pushLawWindow = [[WeekLayerManager shared] geometricFaxWindow];
    UIEdgeInsets safe = pushLawWindow.safeAreaInsets;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.cloudBigMathSize);
        }];
    }else {
        
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.mas_equalTo(0);
                make.left.mas_equalTo(safe.left);
                make.size.mas_equalTo(self.cloudBigMathSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.cloudBigMathSize);
            }];
        }
    }
}

- (void)carriageAccessoryPutHueProblem:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super carriageAccessoryPutHueProblem:touches withEvent:event];
    [[WeekLayerManager shared] twentyBadExtrinsicKinVowelPreferredViewController:self.navigationController];
}

@end
