






#import "FontKinViewController.h"

@interface FontKinViewController ()

@end

@implementation FontKinViewController

- (UIButton *)koreanMinButton
{
    if (!_koreanMinButton) {
        _koreanMinButton = [[UIButton alloc] init];
        [_koreanMinButton setTitle:ExtentEuler.maleSubtitle.editorialConflictsRecordFarSunUploading forState:UIControlStateNormal];
        [_koreanMinButton setTitleColor:[ExtentEuler gigahertzColor] forState:UIControlStateNormal];
        [_koreanMinButton addTarget:self action:@selector(ownBoxEarHandoffMotionAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _koreanMinButton;
}

- (UIButton *)innerDelayButton
{
    if (!_innerDelayButton) {
        _innerDelayButton = [[UIButton alloc] init];
        [_innerDelayButton setTitle:ExtentEuler.maleSubtitle.cursiveLocalityRootCursiveSinLanguages forState:UIControlStateNormal];
        [_innerDelayButton setTitleColor:[ExtentEuler gigahertzColor] forState:UIControlStateNormal];
        [_innerDelayButton addTarget:self action:@selector(activityLossRangingUndefinedCreamyAction:) forControlEvents:UIControlEventTouchUpInside];
        _innerDelayButton.hidden = [ExtentEuler alongInsertingOverallRebuildSlopeRegistry];
    }
    return _innerDelayButton;
}

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

- (void)activityLossRangingUndefinedCreamyAction:(UIButton *)sender {
    [[FrequencyManager shared] sessionModalWindow];
    [ExtentEuler activityLossRangingUndefinedCreamyAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [ExtentEuler reversedDitheredTableMoveDegradedColor];
    [self.view addSubview:self.koreanMinButton];
    [self.view addSubview:self.innerDelayButton];
    
    CGFloat bitSize = ExtentEuler.maleSubtitle.selectorMust;
    [_koreanMinButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(ExtentEuler.maleSubtitle.binVideoWet);
        make.size.mas_equalTo(CGSizeMake(bitSize, bitSize));
    }];
    [_innerDelayButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(ExtentEuler.maleSubtitle.binVideoWet);
        make.right.equalTo(self.view).offset(-ExtentEuler.maleSubtitle.binVideoWet);
        make.size.mas_equalTo(CGSizeMake(bitSize, bitSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(combiningFinderLearnSquaredRollbackTakeFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(externTiedTornadoPairDialogStair:) 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([ExtentEuler republicFlushCapPubIndirectEndsSize]);
    }];
}


- (void)combiningFinderLearnSquaredRollbackTakeFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect trainingFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [FrequencyManager shared].putAboutStopWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(ExtentEuler.maleSubtitle.zipWorkspaceVisionReadyMacintoshChannel)]) {
#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 herRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((herRect.origin.y + herRect.size.height) > trainingFrame.origin.y) {
                CGFloat occur = ((herRect.origin.y + herRect.size.height) - trainingFrame.origin.y) + 10;
                
                maleDog(self);
                [UIView animateWithDuration:duration animations:^{
                    stakeQuit(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -occur);
                }];
            }
        }
    }
}


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

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

- (void)uptimeFaxSaveChargePrep:(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
