






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

@interface SayPoolViewController ()

@end

@implementation SayPoolViewController

- (UIButton *)directEyeButton
{
    if (!_directEyeButton) {
        _directEyeButton = [[UIButton alloc] init];
        [_directEyeButton setTitle:ReceivedFor.dogMagicChar.childFilteringMakerBackwardsYouKit forState:UIControlStateNormal];
        [_directEyeButton setTitleColor:[ReceivedFor preferPinColor] forState:UIControlStateNormal];
        [_directEyeButton addTarget:self action:@selector(boxLeapWidthResignTransferAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _directEyeButton;
}

- (UIButton *)learnMightButton
{
    if (!_learnMightButton) {
        _learnMightButton = [[UIButton alloc] init];
        [_learnMightButton setTitle:ReceivedFor.dogMagicChar.dashTalkGenreSegmentedOffAssert forState:UIControlStateNormal];
        [_learnMightButton setTitleColor:[ReceivedFor preferPinColor] forState:UIControlStateNormal];
        [_learnMightButton addTarget:self action:@selector(uploadSeasonPrimaryMalayalamEstimatedAction:) forControlEvents:UIControlEventTouchUpInside];
        _learnMightButton.hidden = [ReceivedFor chooseBadUnlockFilmStreamsResponds];
    }
    return _learnMightButton;
}

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

- (void)uploadSeasonPrimaryMalayalamEstimatedAction:(UIButton *)sender {
    [[DryPortalManager shared] meteringPeerWindow];
    [ReceivedFor uploadSeasonPrimaryMalayalamEstimatedAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = ReceivedFor.dogMagicChar.overrideMood;

    
    self.view.backgroundColor = [ReceivedFor obsoleteSlantTimeCreatingExternColor];
    NSString *creatingSecurelyModifiedLexiconCursive = [ReceivedFor pongEldestCubicSlowIgnoringImage];
    if (creatingSecurelyModifiedLexiconCursive) {
        UIImageView *watchShortImageView = [[UIImageView alloc] init];
        watchShortImageView.contentMode = UIViewContentModeScaleAspectFill;
        watchShortImageView.clipsToBounds = YES;
        watchShortImageView.layer.cornerRadius = ReceivedFor.dogMagicChar.overrideMood;
        watchShortImageView.layer.masksToBounds = YES;
        [watchShortImageView sd_setImageWithURL:[NSURL URLWithString:creatingSecurelyModifiedLexiconCursive]];
        [self.view insertSubview:watchShortImageView atIndex:0];
        [watchShortImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
        self.ovulationUseLifetimeClaimAdditionsImageView = watchShortImageView;
    }

    [self.view addSubview:self.directEyeButton];
    [self.view addSubview:self.learnMightButton];
    
    CGFloat outSize = ReceivedFor.dogMagicChar.pintFunModel;
    [_directEyeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(ReceivedFor.dogMagicChar.nativeStood);
        make.size.mas_equalTo(CGSizeMake(outSize, outSize));
    }];
    [_learnMightButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(ReceivedFor.dogMagicChar.nativeStood);
        make.right.equalTo(self.view).offset(-ReceivedFor.dogMagicChar.nativeStood);
        make.size.mas_equalTo(CGSizeMake(outSize, outSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(justFilmRefreshInstantActualItsFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(agentFinnishRegularYardQuarterReturning:) 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([ReceivedFor hangReusableDayGestureProblemTapSize]);
    }];
}


- (void)justFilmRefreshInstantActualItsFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect kinUsageFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [DryPortalManager shared].leftCanadianWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(ReceivedFor.dogMagicChar.queueRaiseTintOptSeparatorTelephony)]) {
#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 tagRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((tagRect.origin.y + tagRect.size.height) > kinUsageFrame.origin.y) {
                CGFloat coast = ((tagRect.origin.y + tagRect.size.height) - kinUsageFrame.origin.y) + 10;
                
                escapes(self);
                [UIView animateWithDuration:duration animations:^{
                    rowAtomic(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -coast);
                }];
            }
        }
    }
}


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

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

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