






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

@interface ManSoloViewController ()

@end

@implementation ManSoloViewController

- (UIButton *)notIndianButton
{
    if (!_notIndianButton) {
        _notIndianButton = [[UIButton alloc] init];
        [_notIndianButton setTitle:ZipCoulombs.locatorCanon.uppercaseArbiterStartupPanCallEncodings forState:UIControlStateNormal];
        [_notIndianButton setTitleColor:[ZipCoulombs passShelfColor] forState:UIControlStateNormal];
        [_notIndianButton addTarget:self action:@selector(declinedDrumCosmicBedUseAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _notIndianButton;
}

- (UIButton *)feetHowAndButton
{
    if (!_feetHowAndButton) {
        _feetHowAndButton = [[UIButton alloc] init];
        [_feetHowAndButton setTitle:ZipCoulombs.locatorCanon.darkExportingHeadlineReceivedAspectProtocols forState:UIControlStateNormal];
        [_feetHowAndButton setTitleColor:[ZipCoulombs passShelfColor] forState:UIControlStateNormal];
        [_feetHowAndButton addTarget:self action:@selector(tripleEnumerateColorOptionFinnishAction:) forControlEvents:UIControlEventTouchUpInside];
        _feetHowAndButton.hidden = [ZipCoulombs stoneRevealFoldProvideReceivedSubmit];
    }
    return _feetHowAndButton;
}

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

- (void)tripleEnumerateColorOptionFinnishAction:(UIButton *)sender {
    [[UndefinedManager shared] advisedStripWindow];
    [ZipCoulombs tripleEnumerateColorOptionFinnishAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = ZipCoulombs.locatorCanon.producesUsed;

    
    self.view.backgroundColor = [ZipCoulombs blackSwashesSlovakReductionDocumentColor];
    NSString *lingerHasDirectorRemovesKilowatts = [ZipCoulombs sphereChangingRemoteIllDrizzleImage];
    if (lingerHasDirectorRemovesKilowatts) {
        UIImageView *indexLooseImageView = [[UIImageView alloc] init];
        indexLooseImageView.contentMode = UIViewContentModeScaleAspectFill;
        indexLooseImageView.clipsToBounds = YES;
        indexLooseImageView.layer.cornerRadius = ZipCoulombs.locatorCanon.producesUsed;
        indexLooseImageView.layer.masksToBounds = YES;
        [indexLooseImageView sd_setImageWithURL:[NSURL URLWithString:lingerHasDirectorRemovesKilowatts]];
        [self.view insertSubview:indexLooseImageView atIndex:0];
        [indexLooseImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
        self.orderEqualityButterflyNodeMouseImageView = indexLooseImageView;
    }

    [self.view addSubview:self.notIndianButton];
    [self.view addSubview:self.feetHowAndButton];
    
    CGFloat illSize = ZipCoulombs.locatorCanon.yetPathLocal;
    [_notIndianButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(ZipCoulombs.locatorCanon.sigmoidDeny);
        make.size.mas_equalTo(CGSizeMake(illSize, illSize));
    }];
    [_feetHowAndButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(ZipCoulombs.locatorCanon.sigmoidDeny);
        make.right.equalTo(self.view).offset(-ZipCoulombs.locatorCanon.sigmoidDeny);
        make.size.mas_equalTo(CGSizeMake(illSize, illSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(bypassedRejectInnerFarthestBoxBehaviorsFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(boldfaceGrammarChapterAwayKeyClinical:) 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([ZipCoulombs hitRenderRaiseEdgaTightCautionSize]);
    }];
}


- (void)bypassedRejectInnerFarthestBoxBehaviorsFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect everyFarFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [UndefinedManager shared].occurredCellWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(ZipCoulombs.locatorCanon.cycleArmenianMeteringLoudCursorsGeometric)]) {
#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 nowRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((nowRect.origin.y + nowRect.size.height) > everyFarFrame.origin.y) {
                CGFloat trash = ((nowRect.origin.y + nowRect.size.height) - everyFarFrame.origin.y) + 10;
                
                peakHow(self);
                [UIView animateWithDuration:duration animations:^{
                    columnHis(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -trash);
                }];
            }
        }
    }
}


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

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

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