






#import "ResumedViewController.h"

@interface ResumedViewController ()

@end

@implementation ResumedViewController

- (UIButton *)forkChestButton
{
    if (!_forkChestButton) {
        _forkChestButton = [[UIButton alloc] init];
        [_forkChestButton setTitle:SubBondFour.nodeFourteen.guideSpaKilobitsClickBankSquare forState:UIControlStateNormal];
        [_forkChestButton setTitleColor:[SubBondFour actualCatColor] forState:UIControlStateNormal];
        [_forkChestButton addTarget:self action:@selector(realCoastRepeatsGreekDeriveAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _forkChestButton;
}

- (UIButton *)busExtractButton
{
    if (!_busExtractButton) {
        _busExtractButton = [[UIButton alloc] init];
        [_busExtractButton setTitle:SubBondFour.nodeFourteen.distortedArgumentsUtilitiesReportShePen forState:UIControlStateNormal];
        [_busExtractButton setTitleColor:[SubBondFour actualCatColor] forState:UIControlStateNormal];
        [_busExtractButton addTarget:self action:@selector(didOffBeganBalancedStairAction:) forControlEvents:UIControlEventTouchUpInside];
        _busExtractButton.hidden = [SubBondFour solidMinuteRecursiveBurnSlightWelsh];
    }
    return _busExtractButton;
}

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

- (void)didOffBeganBalancedStairAction:(UIButton *)sender {
    [[KeysVoiceManager shared] hailTargetedWindow];
    [SubBondFour didOffBeganBalancedStairAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [SubBondFour mergeStylusPartialPingTagsColor];
    [self.view addSubview:self.forkChestButton];
    [self.view addSubview:self.busExtractButton];
    
    CGFloat andSize = SubBondFour.nodeFourteen.masteringLaw;
    [_forkChestButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(SubBondFour.nodeFourteen.tagWetTorch);
        make.size.mas_equalTo(CGSizeMake(andSize, andSize));
    }];
    [_busExtractButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(SubBondFour.nodeFourteen.tagWetTorch);
        make.right.equalTo(self.view).offset(-SubBondFour.nodeFourteen.tagWetTorch);
        make.size.mas_equalTo(CGSizeMake(andSize, andSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(libraryBevelLatvianTrustSentinelOriginFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(streamsPopTeluguRatioLogUptime:) name:UIKeyboardWillHideNotification object:nil];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo([SubBondFour carbonCursorsSolveDarkenGroupedStillSize]);
    }];
}


- (void)libraryBevelLatvianTrustSentinelOriginFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect skinBusyFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [KeysVoiceManager shared].kilobitsClipWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(SubBondFour.nodeFourteen.reliableLightWrestlingEnumerateLighterObservers)]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        UIView *firstResponder = [keyWindow performSelector:@selector(firstResponder)];
#pragma clang diagnostic pop
        
        if (firstResponder  && [firstResponder isKindOfClass:UITextField.class]) {

            CGRect twoRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((twoRect.origin.y + twoRect.size.height) > skinBusyFrame.origin.y) {
                CGFloat yahoo = ((twoRect.origin.y + twoRect.size.height) - skinBusyFrame.origin.y) + 10;
                
                paceBig(self);
                [UIView animateWithDuration:duration animations:^{
                    buildRule(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -yahoo);
                }];
            }
        }
    }
}


- (void)streamsPopTeluguRatioLogUptime:(NSNotification *)notification{
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    paceBig(self);
    [UIView animateWithDuration:duration animations:^{
        buildRule(self);
        self.navigationController.view.transform = CGAffineTransformIdentity;
    }];
}

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

- (void)badPairCallScatteredImmutable:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.view endEditing:YES];
}

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

@end
