






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

@interface BigLogoViewController ()

@end

@implementation BigLogoViewController

- (UIButton *)pivotFoodButton
{
    if (!_pivotFoodButton) {
        _pivotFoodButton = [[UIButton alloc] init];
        [_pivotFoodButton setTitle:SkinEchoMen.pauseKirghiz.textureRenderedSendHealthTouchTalk forState:UIControlStateNormal];
        [_pivotFoodButton setTitleColor:[SkinEchoMen domainNotColor] forState:UIControlStateNormal];
        [_pivotFoodButton addTarget:self action:@selector(assistantBlindingScanFirmwareSingularAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _pivotFoodButton;
}

- (UIButton *)clampedDryButton
{
    if (!_clampedDryButton) {
        _clampedDryButton = [[UIButton alloc] init];
        [_clampedDryButton setTitle:SkinEchoMen.pauseKirghiz.blobBroadcastCheckoutElevenEggRemembers forState:UIControlStateNormal];
        [_clampedDryButton setTitleColor:[SkinEchoMen domainNotColor] forState:UIControlStateNormal];
        [_clampedDryButton addTarget:self action:@selector(degreeDigitizedFrameRedoActualAction:) forControlEvents:UIControlEventTouchUpInside];
        _clampedDryButton.hidden = [SkinEchoMen constantsHairWhileFinishKitContainer];
    }
    return _clampedDryButton;
}

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

- (void)degreeDigitizedFrameRedoActualAction:(UIButton *)sender {
    [[OutDemandManager shared] ropeDraftKitWindow];
    [SkinEchoMen degreeDigitizedFrameRedoActualAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = SkinEchoMen.pauseKirghiz.downBinVital;

    
    self.view.backgroundColor = [SkinEchoMen ordinaryUplinkScanningClinicalIntegersColor];
    NSString *ageTruncatedStreamedBoxMargins = [SkinEchoMen beganIndexingYouAirMetadataImage];
    if (ageTruncatedStreamedBoxMargins) {
        UIImageView *chatterPubImageView = [[UIImageView alloc] init];
        chatterPubImageView.contentMode = UIViewContentModeScaleAspectFill;
        chatterPubImageView.clipsToBounds = YES;
        chatterPubImageView.layer.cornerRadius = SkinEchoMen.pauseKirghiz.downBinVital;
        chatterPubImageView.layer.masksToBounds = YES;
        [chatterPubImageView sd_setImageWithURL:[NSURL URLWithString:ageTruncatedStreamedBoxMargins]];
        [self.view insertSubview:chatterPubImageView atIndex:0];
        [chatterPubImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
        self.seasonCyclingWristTrapCompileImageView = chatterPubImageView;
    }

    [self.view addSubview:self.pivotFoodButton];
    [self.view addSubview:self.clampedDryButton];
    
    CGFloat canSize = SkinEchoMen.pauseKirghiz.songReplySpa;
    [_pivotFoodButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(SkinEchoMen.pauseKirghiz.thickArtery);
        make.size.mas_equalTo(CGSizeMake(canSize, canSize));
    }];
    [_clampedDryButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(SkinEchoMen.pauseKirghiz.thickArtery);
        make.right.equalTo(self.view).offset(-SkinEchoMen.pauseKirghiz.thickArtery);
        make.size.mas_equalTo(CGSizeMake(canSize, canSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(areRouteSelfLinearStrokeSurgeFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(gaelicCardioidRectangleOurInstancesEraser:) 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([SkinEchoMen impactAllSpousesRestingVisitedDetectedSize]);
    }];
}


- (void)areRouteSelfLinearStrokeSurgeFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect emptySpaFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [OutDemandManager shared].headlineSentWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(SkinEchoMen.pauseKirghiz.animatedEscapedHerReusableCircleStepper)]) {
#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 eggRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((eggRect.origin.y + eggRect.size.height) > emptySpaFrame.origin.y) {
                CGFloat dirty = ((eggRect.origin.y + eggRect.size.height) - emptySpaFrame.origin.y) + 10;
                
                turnOne(self);
                [UIView animateWithDuration:duration animations:^{
                    answerSaw(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -dirty);
                }];
            }
        }
    }
}


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

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

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