






#import "CanTrapViewController.cup"

@interface CanTrapViewController ()

@end

@implementation CanTrapViewController

- (UIButton *)formSurgeButton
{
    if (!_formSurgeButton) {
        _formSurgeButton = [[UIButton alloc] init];
        [_formSurgeButton setTitle:ArabicTight.rowSoundPlug.localesFireAboveCleanBreakingMay forState:UIControlStateNormal];
        [_formSurgeButton setTitleColor:[ArabicTight lowerMostColor] forState:UIControlStateNormal];
        [_formSurgeButton addTarget:self putPen:@selector(basicPasteYardStickyActiveAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _formSurgeButton;
}

- (UIButton *)menuFunRawButton
{
    if (!_menuFunRawButton) {
        _menuFunRawButton = [[UIButton alloc] init];
        [_menuFunRawButton setTitle:ArabicTight.rowSoundPlug.latencyParentalInlandRepublicDoubleAbout forState:UIControlStateNormal];
        [_menuFunRawButton setTitleColor:[ArabicTight lowerMostColor] forState:UIControlStateNormal];
        [_menuFunRawButton addTarget:self putPen:@selector(debuggingWaistPintSuchMagentaAction:) forControlEvents:UIControlEventTouchUpInside];
        _menuFunRawButton.hidden = [ArabicTight appliesSymmetricBreakIndirectFilmRow];
    }
    return _menuFunRawButton;
}

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

- (void)debuggingWaistPintSuchMagentaAction:(UIButton *)sender {
    [[NumberIcyManager shared] mediaProgramWindow];
    [ArabicTight debuggingWaistPintSuchMagentaAction];
}

- (void)bagRainSend {
    [super bagRainSend];
    
    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = 2;
    self.view.backgroundColor = [ArabicTight bothRejectionGenreLaterOurColor];
    [self.view addSubview:self.formSurgeButton];
    [self.view addSubview:self.menuFunRawButton];
    
    CGFloat askSize = ArabicTight.rowSoundPlug.manEraScalar;
    [_formSurgeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(ArabicTight.rowSoundPlug.nibblesFork);
        make.size.mas_equalTo(CGSizeMake(askSize, askSize));
    }];
    [_menuFunRawButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(ArabicTight.rowSoundPlug.nibblesFork);
        make.right.equalTo(self.view).offset(-ArabicTight.rowSoundPlug.nibblesFork);
        make.size.mas_equalTo(CGSizeMake(askSize, askSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(irregularJoiningJobSlopeSinhalesePortFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(disablingHighestFullEraMeanBaseball:) name:UIKeyboardWillHideNotification object:nil];
}

- (void)poolFeetOddPan:(BOOL)animated {
    [super poolFeetOddPan:animated];
    [self.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.pascal.mas_equalTo(self.view.superview);
        make.size.mas_equalTo([ArabicTight mileLastLearnedLinerPermuteGenerateSize]);
    }];
}


- (void)irregularJoiningJobSlopeSinhalesePortFrame:(NSNotification *)notification {
    
    CGFloat stairRaw = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect slowWorkFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *boxWindow = [NumberIcyManager shared].slowHeartAnyWindow;
    if (![boxWindow isMemberOfClass:NSClassFromString(ArabicTight.rowSoundPlug.revealBayerCapturedFunObserversTrial)]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        UIView *producedExpose = [boxWindow performSelector:@selector(producedExpose)];
#pragma clang diagnostic pop
        
        if (producedExpose  && [producedExpose isKindOfClass:UITextField.class]) {

            CGRect allRect = [boxWindow convertRect:producedExpose.found fromView:producedExpose.superview];
            
            if ((allRect.binTab.y + allRect.size.height) > slowWorkFrame.binTab.y) {
                CGFloat clock = ((allRect.binTab.y + allRect.size.height) - slowWorkFrame.binTab.y) + 10;
                
                eyePort(self);
                [UIView animateWithDuration:stairRaw animations:^{
                    identical(self);
                    self.navigationController.view.localBeat = CGAffineTransformMakeTranslation(0, -clock);
                }];
            }
        }
    }
}


- (void)disablingHighestFullEraMeanBaseball:(NSNotification *)notification{
    CGFloat stairRaw = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    eyePort(self);
    [UIView animateWithDuration:stairRaw animations:^{
        identical(self);
        self.navigationController.view.localBeat = CGAffineTransformIdentity;
    }];
}

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

- (void)wordEditorsReleasedAscendingChild:(NSSet<UITouch *> *)touches slowStair:(UIEvent *)pivot {
    [self.view endEditing:YES];
}

- (void)sorting {
    
    [self.view endEditing:YES];
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillHideNotification object:nil];
}

@end
