






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

@interface IntegerViewController ()

@end

@implementation IntegerViewController

- (UIButton *)curveMailButton
{
    if (!_curveMailButton) {
        _curveMailButton = [[UIButton alloc] init];
        [_curveMailButton setTitle:SheTintAuto.linerIndexed.declinedYouOperatorAndVeryDarken forState:UIControlStateNormal];
        [_curveMailButton setTitleColor:[SheTintAuto deleteItsColor] forState:UIControlStateNormal];
        [_curveMailButton addTarget:self action:@selector(plusUnpluggedHighFetchEpisodeAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _curveMailButton;
}

- (UIButton *)hostingDayButton
{
    if (!_hostingDayButton) {
        _hostingDayButton = [[UIButton alloc] init];
        [_hostingDayButton setTitle:SheTintAuto.linerIndexed.hoverSigmaMemoryYouBookCapacity forState:UIControlStateNormal];
        [_hostingDayButton setTitleColor:[SheTintAuto deleteItsColor] forState:UIControlStateNormal];
        [_hostingDayButton addTarget:self action:@selector(longitudeLayoutDiscardedBrowsingLaotianAction:) forControlEvents:UIControlEventTouchUpInside];
        _hostingDayButton.hidden = [SheTintAuto dirtyAdvancedProjectLicenseCloudyBroadcast];
    }
    return _hostingDayButton;
}

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

- (void)longitudeLayoutDiscardedBrowsingLaotianAction:(UIButton *)sender {
    [[RotorWaitManager shared] barOwnMobileWindow];
    [SheTintAuto longitudeLayoutDiscardedBrowsingLaotianAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = SheTintAuto.linerIndexed.stepPlateJob;

    
    self.view.backgroundColor = [SheTintAuto performedFlightLiterSymbolChooseColor];
    NSString *cancelledRepublicAgeSmoothedDepending = [SheTintAuto barsDesiredSeventeenNoiseCollectedImage];
    if (cancelledRepublicAgeSmoothedDepending) {
        UIImageView *enableOnlyImageView = [[UIImageView alloc] init];
        enableOnlyImageView.contentMode = UIViewContentModeScaleAspectFill;
        enableOnlyImageView.clipsToBounds = YES;
        enableOnlyImageView.layer.cornerRadius = SheTintAuto.linerIndexed.stepPlateJob;
        enableOnlyImageView.layer.masksToBounds = YES;
        [enableOnlyImageView sd_setImageWithURL:[NSURL URLWithString:cancelledRepublicAgeSmoothedDepending]];
        [self.view insertSubview:enableOnlyImageView atIndex:0];
        [enableOnlyImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
        self.sedentaryGreenSupportsIronSnowImageView = enableOnlyImageView;
    }

    [self.view addSubview:self.curveMailButton];
    [self.view addSubview:self.hostingDayButton];
    
    CGFloat endSize = SheTintAuto.linerIndexed.rearSawShift;
    [_curveMailButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(SheTintAuto.linerIndexed.subUpperFix);
        make.size.mas_equalTo(CGSizeMake(endSize, endSize));
    }];
    [_hostingDayButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(SheTintAuto.linerIndexed.subUpperFix);
        make.right.equalTo(self.view).offset(-SheTintAuto.linerIndexed.subUpperFix);
        make.size.mas_equalTo(CGSizeMake(endSize, endSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(occlusionSearchingRawBoundMeanTrialFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(olympusCategoryDolbyPreparingSoftwareShow:) 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([SheTintAuto insideGreekFunkFatResizePanSize]);
    }];
}


- (void)occlusionSearchingRawBoundMeanTrialFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect behaviorFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [RotorWaitManager shared].terminateRowWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(SheTintAuto.linerIndexed.garbageMagentaAnnotatedApplyVelocityChanged)]) {
#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 manRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((manRect.origin.y + manRect.size.height) > behaviorFrame.origin.y) {
                CGFloat plain = ((manRect.origin.y + manRect.size.height) - behaviorFrame.origin.y) + 10;
                
                spouses(self);
                [UIView animateWithDuration:duration animations:^{
                    polishMax(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -plain);
                }];
            }
        }
    }
}


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

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

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