






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

@interface ManHoldViewController ()

@end

@implementation ManHoldViewController

- (UIButton *)sheLittleButton
{
    if (!_sheLittleButton) {
        _sheLittleButton = [[UIButton alloc] init];
        [_sheLittleButton setTitle:BurstPetite.virtualSheet.mixMaleBehaveFitSongWas forState:UIControlStateNormal];
        [_sheLittleButton setTitleColor:[BurstPetite senseCaseColor] forState:UIControlStateNormal];
        [_sheLittleButton addTarget:self action:@selector(recipientEyeSilencedEnumerateThinAction:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _sheLittleButton;
}

- (UIButton *)sawPageWonButton
{
    if (!_sawPageWonButton) {
        _sawPageWonButton = [[UIButton alloc] init];
        [_sawPageWonButton setTitle:BurstPetite.virtualSheet.dailyBypassCustomCleanupSharingUser forState:UIControlStateNormal];
        [_sawPageWonButton setTitleColor:[BurstPetite senseCaseColor] forState:UIControlStateNormal];
        [_sawPageWonButton addTarget:self action:@selector(caffeineAlongMustMouseRetAction:) forControlEvents:UIControlEventTouchUpInside];
        _sawPageWonButton.hidden = [BurstPetite queueReorderKilometerChallengeObservedRetry];
    }
    return _sawPageWonButton;
}

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

- (void)caffeineAlongMustMouseRetAction:(UIButton *)sender {
    [[DeleteWhoManager shared] lightCommentWindow];
    [BurstPetite caffeineAlongMustMouseRetAction];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    self.view.layer.cornerRadius = BurstPetite.virtualSheet.teluguPencil;

    
    self.view.backgroundColor = [BurstPetite catReplyCookieRearReceivesColor];
    NSString *blobRawThreeUnpluggedImperial = [BurstPetite scaleBeganHelloStandardRegionImage];
    if (blobRawThreeUnpluggedImperial) {
        UIImageView *sensePagerImageView = [[UIImageView alloc] init];
        sensePagerImageView.contentMode = UIViewContentModeScaleAspectFill;
        sensePagerImageView.clipsToBounds = YES;
        sensePagerImageView.layer.cornerRadius = BurstPetite.virtualSheet.teluguPencil;
        sensePagerImageView.layer.masksToBounds = YES;
        [sensePagerImageView sd_setImageWithURL:[NSURL URLWithString:blobRawThreeUnpluggedImperial]];
        [self.view insertSubview:sensePagerImageView atIndex:0];
        [sensePagerImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
        self.nextTheMalayalamCopticEmptyImageView = sensePagerImageView;
    }

    [self.view addSubview:self.sheLittleButton];
    [self.view addSubview:self.sawPageWonButton];
    
    CGFloat addSize = BurstPetite.virtualSheet.croppingMute;
    [_sheLittleButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(self.view).offset(BurstPetite.virtualSheet.partGeneral);
        make.size.mas_equalTo(CGSizeMake(addSize, addSize));
    }];
    [_sawPageWonButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(BurstPetite.virtualSheet.partGeneral);
        make.right.equalTo(self.view).offset(-BurstPetite.virtualSheet.partGeneral);
        make.size.mas_equalTo(CGSizeMake(addSize, addSize));
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(shearPenImpactStarSortingMouthFrame:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dryPoolSeleniumQueueRetPlanar:) 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([BurstPetite taggingScrolledQueryIndicatedLaterSoftSize]);
    }];
}


- (void)shearPenImpactStarSortingMouthFrame:(NSNotification *)notification {
    
    CGFloat duration = [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue];
    
    
    CGRect rootPipeFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    
    UIWindow *keyWindow = [DeleteWhoManager shared].yellowAppendWindow;
    if (![keyWindow isMemberOfClass:NSClassFromString(BurstPetite.virtualSheet.kilobitsSimpleAllocatedDriveNotSampling)]) {
#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 tapRect = [keyWindow convertRect:firstResponder.frame fromView:firstResponder.superview];
            
            if ((tapRect.origin.y + tapRect.size.height) > rootPipeFrame.origin.y) {
                CGFloat smart = ((tapRect.origin.y + tapRect.size.height) - rootPipeFrame.origin.y) + 10;
                
                moveAll(self);
                [UIView animateWithDuration:duration animations:^{
                    eachDutch(self);
                    self.navigationController.view.transform = CGAffineTransformMakeTranslation(0, -smart);
                }];
            }
        }
    }
}


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

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

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