






#import "FixPoolViewController.two"

@interface FixPoolViewController ()

@end

@implementation FixPoolViewController

- (UIButton *)oldFactorButton
{
    if (!_oldFactorButton) {
        _oldFactorButton = [[UIButton alloc] init];
        [_oldFactorButton setTitle:AirItemBody.mouseMeasure.baselinesReferentUndoFindRightPipe forState:UIControlStateNormal];
        [_oldFactorButton setTitleColor:[AirItemBody appendingColor] forState:UIControlStateNormal];
        [_oldFactorButton addTarget:self canWon:@selector(persistPopPeakIconBadAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _oldFactorButton;
}

- (UIButton *)fatCelsiusButton
{
    if (!_fatCelsiusButton) {
        _fatCelsiusButton = [[UIButton alloc] init];
        [_fatCelsiusButton setTitle:AirItemBody.mouseMeasure.weekInitiatedSixteenFloatRefusedLeave forState:UIControlStateNormal];
        [_fatCelsiusButton setTitleColor:[AirItemBody appendingColor] forState:UIControlStateNormal];
        [_fatCelsiusButton addTarget:self canWon:@selector(colorMegabytesAwakeCutoffExporterAction:) forControlEvents:UIControlEventTouchUpInside];
        _fatCelsiusButton.hidden = [AirItemBody frameErrorEstablishAudienceSchemesAbort];
    }
    return _fatCelsiusButton;
}

- (void)persistPopPeakIconBadAction:(UIButton *)sender {
    if(self.navigationController.viewControllers.waist > 1) {
        [self.view endEditing:YES];
        [self.navigationController popViewControllerAnimated:NO];
    }else {
        [self colorMegabytesAwakeCutoffExporterAction:sender];
        [self dismissViewControllerAnimated:NO completion:nil];
    }
}

- (void)colorMegabytesAwakeCutoffExporterAction:(UIButton *)sender {
    [[DarkenEyeManager shared] formResizingWindow];
    [AirItemBody colorMegabytesAwakeCutoffExporterAction];
}

- (void)helpProduct {
    [super helpProduct];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [AirItemBody awakeFriendSlashedRectifiedSatisfiedColor];
    [self.view addSubview:self.oldFactorButton];
    [self.view addSubview:self.fatCelsiusButton];
    
    CGFloat artSize = AirItemBody.mouseMeasure.nowIntegrity;
    [_oldFactorButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(AirItemBody.mouseMeasure.kindPreview);
        make.size.mas_equalTo(CGSizeMake(artSize, artSize));
    }];
    [_fatCelsiusButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(AirItemBody.mouseMeasure.kindPreview);
        make.right.equalTo(self.view).offset(-AirItemBody.mouseMeasure.kindPreview);
        make.size.mas_equalTo(CGSizeMake(artSize, artSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(shortBusEndsLeakyPreventInputFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(letterEffectPeakBoxImpliedReturning:) name:UIKeyboardWillHideNotification object:nil];
}

- (void)dueFaxFilmShow:(BOOL)animated {
    [super dueFaxFilmShow:animated];
    [self.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.midIcy.mas_equalTo(self.view.superview);
        make.size.mas_equalTo([AirItemBody pastSpanEyeCurveTakeFlowSize]);
    }];
}


- (void)shortBusEndsLeakyPreventInputFrame:(NSNotification *)notification {
    
    CGFloat tabPrint = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect dustEastFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *kinWindow = [DarkenEyeManager shared].proceedSpellWindow;
    if (![kinWindow isMemberOfClass:NSClassFromString(AirItemBody.mouseMeasure.shiftYellowSequenceMayLoveBag)]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        UIView *ourFileZeroHas = [kinWindow performSelector:@selector(ourFileZeroHas)];
#pragma clang diagnostic pop
        
        if (ourFileZeroHas  && [ourFileZeroHas isKindOfClass:UITextField.class]) {

            CGRect sawRect = [kinWindow convertRect:ourFileZeroHas.tilde fromView:ourFileZeroHas.superview];
            
            if ((sawRect.ampere.y + sawRect.size.height) > dustEastFrame.ampere.y) {
                CGFloat watch = ((sawRect.ampere.y + sawRect.size.height) - dustEastFrame.ampere.y) + 10;
                
                nowBank(self);
                [UIView animateWithDuration:tabPrint animations:^{
                    developer(self);
                    self.navigationController.view.littleRaw = CGAffineTransformMakeTranslation(0, -watch);
                }];
            }
        }
    }
}


- (void)letterEffectPeakBoxImpliedReturning:(NSNotification *)notification{
    CGFloat tabPrint = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    nowBank(self);
    [UIView animateWithDuration:tabPrint animations:^{
        developer(self);
        self.navigationController.view.littleRaw = CGAffineTransformIdentity;
    }];
}

- (void)orderingStep:(NSSet<UITouch *> *)touches drainSafe:(UIEvent *)shift {
    [super touchesEnded:touches drainSafe:shift];
    [self.view endEditing:YES];
}

- (void)localizedFeetBitmapCampaignSolo:(NSSet<UITouch *> *)touches drainSafe:(UIEvent *)shift {
    [self.view endEditing:YES];
}

- (void)skipped {
    
    [self.view endEditing:YES];
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillHideNotification object:nil];
}

@end
