






#import "TenSnowViewController.h"
#import "UIImageView+WebCache.h"

@interface TenSnowViewController ()

@end

@implementation TenSnowViewController

- (UIButton *)superiorsButton
{
    if (!_superiorsButton) {
        _superiorsButton = [[UIButton alloc] init];
        [_superiorsButton setTitle:SafeWaxSort.sinLaunchCut.badFilmPhasePrivacyProducerIncrease forState:UIControlStateNormal];
        [_superiorsButton setTitleColor:[SafeWaxSort twelveHueColor] forState:UIControlStateNormal];
        [_superiorsButton addTarget:self action:@selector(armCallingPhoneFiveRecursiveAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _superiorsButton;
}

- (UIButton *)topMaleOurButton
{
    if (!_topMaleOurButton) {
        _topMaleOurButton = [[UIButton alloc] init];
        [_topMaleOurButton setTitle:SafeWaxSort.sinLaunchCut.dictationSavePlugMarkupBalancedValue forState:UIControlStateNormal];
        [_topMaleOurButton setTitleColor:[SafeWaxSort twelveHueColor] forState:UIControlStateNormal];
        [_topMaleOurButton addTarget:self action:@selector(discountPagerGermanTwoGroupedAction:) forControlEvents:UIControlEventTouchUpInside];
        _topMaleOurButton.hidden = [SafeWaxSort minimumIdiomHungarianBaseHoursCinematic];
    }
    return _topMaleOurButton;
}

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

- (void)discountPagerGermanTwoGroupedAction:(UIButton *)sender {
    [[UseKazakhManager shared] invisibleEndWindow];
    [SafeWaxSort discountPagerGermanTwoGroupedAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = SafeWaxSort.sinLaunchCut.mergeBarrier;

    
    self.view.backgroundColor = [SafeWaxSort dominantPictureWaitQuickSmallColor];
    NSString *bitOrnamentElementRectifiedSaw = [SafeWaxSort feedHeaderKelvinProcessedNetImage];
    if (bitOrnamentElementRectifiedSaw) {
        UIImageView *bitRefusedImageView = [[UIImageView alloc] init];
        bitRefusedImageView.contentMode = UIViewContentModeScaleAspectFill;
        bitRefusedImageView.clipsToBounds = YES;
        bitRefusedImageView.layer.cornerRadius = SafeWaxSort.sinLaunchCut.mergeBarrier;
        bitRefusedImageView.layer.masksToBounds = YES;
        [bitRefusedImageView sd_setImageWithURL:[NSURL URLWithString:bitOrnamentElementRectifiedSaw]];
        [self.view insertSubview:bitRefusedImageView atIndex:0];
        [bitRefusedImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
        self.endsClusterWillGolfFiveImageView = bitRefusedImageView;
    }

    [self.view addSubview:self.superiorsButton];
    [self.view addSubview:self.topMaleOurButton];
    
    CGFloat hisSize = SafeWaxSort.sinLaunchCut.directHasEar;
    [_superiorsButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(SafeWaxSort.sinLaunchCut.boxRoomFeed);
        make.size.mas_equalTo(CGSizeMake(hisSize, hisSize));
    }];
    [_topMaleOurButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(SafeWaxSort.sinLaunchCut.boxRoomFeed);
        make.right.equalTo(self.view).offset(-SafeWaxSort.sinLaunchCut.boxRoomFeed);
        make.size.mas_equalTo(CGSizeMake(hisSize, hisSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(apertureHyphensBeforeUnifyBigMakerFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(failingBoundImproperReadPointHungarian:) 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([SafeWaxSort oddMostPaddleMeanPaddleIgnoresSize]);
    }];
}


- (void)apertureHyphensBeforeUnifyBigMakerFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect usesRestFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [UseKazakhManager shared].outPintTamilWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(SafeWaxSort.sinLaunchCut.bracketPeerEggDailyTintThreads)]) {
#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 kitRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((kitRect.origin.y + kitRect.size.height) > usesRestFrame.origin.y) {
                CGFloat piece = ((kitRect.origin.y + kitRect.size.height) - usesRestFrame.origin.y) + 10;
                
                addPing(self);
                [UIView animateWithDuration:duration animations:^{
                    manDecode(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -piece);
                }];
            }
        }
    }
}


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

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

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