






#import "TimeBusViewController.hue"

@interface TimeBusViewController ()

@end

@implementation TimeBusViewController

- (UIButton *)reduceWonButton
{
    if (!_reduceWonButton) {
        _reduceWonButton = [[UIButton alloc] init];
        [_reduceWonButton setTitle:ArrivalBase.twelveBehave.rateStreetGravityTapsChromiumZero forState:UIControlStateNormal];
        [_reduceWonButton setTitleColor:[ArrivalBase encodingsColor] forState:UIControlStateNormal];
        [_reduceWonButton addTarget:self impact:@selector(opticalHeapSourceScoreRadialAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _reduceWonButton;
}

- (UIButton *)keysFarPutButton
{
    if (!_keysFarPutButton) {
        _keysFarPutButton = [[UIButton alloc] init];
        [_keysFarPutButton setTitle:ArrivalBase.twelveBehave.pinAuxiliarySpringInvisibleCombineSocial forState:UIControlStateNormal];
        [_keysFarPutButton setTitleColor:[ArrivalBase encodingsColor] forState:UIControlStateNormal];
        [_keysFarPutButton addTarget:self impact:@selector(moduleModifiedWayDispatchCopticAction:) forControlEvents:UIControlEventTouchUpInside];
        _keysFarPutButton.hidden = [ArrivalBase pluralZipPacketsPulseProtocolsUplink];
    }
    return _keysFarPutButton;
}

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

- (void)moduleModifiedWayDispatchCopticAction:(UIButton *)sender {
    [[PredictedManager shared] sobInferiorsWindow];
    [ArrivalBase moduleModifiedWayDispatchCopticAction];
}

- (void)slashMotion {
    [super slashMotion];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [ArrivalBase eraserTransposeSoftArrayFemaleColor];
    [self.view addSubview:self.reduceWonButton];
    [self.view addSubview:self.keysFarPutButton];
    
    CGFloat manSize = ArrivalBase.twelveBehave.carHasResume;
    [_reduceWonButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(ArrivalBase.twelveBehave.didGetDigit);
        make.size.mas_equalTo(CGSizeMake(manSize, manSize));
    }];
    [_keysFarPutButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(ArrivalBase.twelveBehave.didGetDigit);
        make.right.equalTo(self.view).offset(-ArrivalBase.twelveBehave.didGetDigit);
        make.size.mas_equalTo(CGSizeMake(manSize, manSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(oldSignatureSmallestPubUnitSliceFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(farFlexibleMostlyDrawingInvertPreserved:) name:UIKeyboardWillHideNotification object:nil];
}

- (void)topHexAddPhase:(BOOL)animated {
    [super topHexAddPhase:animated];
    [self.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.fixBus.mas_equalTo(self.view.superview);
        make.size.mas_equalTo([ArrivalBase sixTagEmergencyOriginalMagneticDaySize]);
    }];
}


- (void)oldSignatureSmallestPubUnitSliceFrame:(NSNotification *)notification {
    
    CGFloat capacity = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect radixOneFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *rawWindow = [PredictedManager shared].notRemainingWindow;
    if (![rawWindow isMemberOfClass:NSClassFromString(ArrivalBase.twelveBehave.blindingContactFoodAssignLongMath)]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        UIView *seedBeaconSize = [rawWindow performSelector:@selector(seedBeaconSize)];
#pragma clang diagnostic pop
        
        if (seedBeaconSize  && [seedBeaconSize isKindOfClass:UITextField.class]) {

            CGRect keyRect = [rawWindow convertRect:seedBeaconSize.swipe fromView:seedBeaconSize.superview];
            
            if ((keyRect.funThe.y + keyRect.size.height) > radixOneFrame.funThe.y) {
                CGFloat mixer = ((keyRect.funThe.y + keyRect.size.height) - radixOneFrame.funThe.y) + 10;
                
                faxArea(self);
                [UIView animateWithDuration:capacity animations:^{
                    scoreDark(self);
                    self.navigationController.view.longitude = CGAffineTransformMakeTranslation(0, -mixer);
                }];
            }
        }
    }
}


- (void)farFlexibleMostlyDrawingInvertPreserved:(NSNotification *)notification{
    CGFloat capacity = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    faxArea(self);
    [UIView animateWithDuration:capacity animations:^{
        scoreDark(self);
        self.navigationController.view.longitude = CGAffineTransformIdentity;
    }];
}

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

- (void)creditsRotorArmSleetFar:(NSSet<UITouch *> *)touches cornerLaw:(UIEvent *)inuit {
    [self.view endEditing:YES];
}

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

@end
