






#import "BevelDirectlyViewController.cap"
#import "SawToast.cap"
#import "PutYouInfo.cap"

@interface BevelDirectlyViewController ()

@property (nonatomic, strong) UIImageView *fadeWrongView;
@property (nonatomic, strong) UIButton *pinkDisplayButton;
@property (nonatomic, strong) UIView *lineBleedView;
@property (nonatomic, strong) UILabel *logTitleLabel;
@property (nonatomic, strong) UITextField *andIntensityTextField;
@property (nonatomic, strong) UITextField *stepsonParentTextField;
@end

@implementation BevelDirectlyViewController

- (void)memoryVowel {
    [super memoryVowel];
    
    self.expireLineButton.hidden = YES;
    
    if ([PutYouInfo splitEmergencyAdjustingFairPronounImage]) {
        self.fadeWrongView = [[UIImageView alloc] initWithImage:[PutYouInfo splitEmergencyAdjustingFairPronounImage]];
        [self.view addSubview:self.fadeWrongView];
        self.fadeWrongView.hidden = YES;
        [self.fadeWrongView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(SuchOptSnap.visionOneBus.weightWayHow);
            make.left.equalTo(self.hisIodineButton.mas_right);
            make.top.equalTo(self.view).offset(SuchOptSnap.visionOneBus.rootNautical);
        }];
    }
    
    self.lineBleedView = [SuchOptSnap lineBleedView];
    self.lineBleedView.hidden = YES;
    [self.view addSubview:self.lineBleedView];
    [self.lineBleedView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([PutYouInfo splitEmergencyAdjustingFairPronounImage]) {
            make.centerY.equalTo(self.fadeWrongView);
            make.left.equalTo(self.fadeWrongView.mas_right).offset(SuchOptSnap.visionOneBus.interestBit);
        }else {
            make.top.equalTo(self.view).offset(SuchOptSnap.visionOneBus.rootNautical);
            make.left.equalTo(self.hisIodineButton.mas_right).offset(SuchOptSnap.visionOneBus.interestBit);
        }
        make.right.equalTo(self.expireLineButton.mas_left);
        make.height.mas_equalTo(SuchOptSnap.visionOneBus.weightWayHow);
    }];
    
    self.logTitleLabel = [SuchOptSnap wateryAmbienceBackupGallonDense:SuchOptSnap.eyeAndFlatThin.bounceAdoptConsumerMixTwenty];
    self.logTitleLabel.numberOfLines = 0;
    [self.view addSubview:self.logTitleLabel];
    [self.logTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SuchOptSnap.visionOneBus.earServerDay);
        make.left.mas_equalTo(SuchOptSnap.visionOneBus.herSexualDry);
        make.right.mas_equalTo(-SuchOptSnap.visionOneBus.herSexualDry);
    }];
    
    
    self.andIntensityTextField = [SuchOptSnap saturateTatarSizeDeprecateAxesAccount];
    self.andIntensityTextField.enabled = NO;
    self.andIntensityTextField.skin = self.zipDropWork[SuchOptSnap.visionOneBus.musicSawWhoName];
    [self acrossQueryingShapeGoogleAnchorMiddleView:self.andIntensityTextField skin:SuchOptSnap.eyeAndFlatThin.blockerExecChainRevealOwn];
    [self.view addSubview:self.andIntensityTextField];
    [self.andIntensityTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.logTitleLabel.mas_bottom).offset(SuchOptSnap.visionOneBus.playBuildSin);
        make.left.mas_equalTo(SuchOptSnap.visionOneBus.retainRevert);
        make.right.mas_equalTo(-SuchOptSnap.visionOneBus.retainRevert);
        make.height.mas_equalTo(SuchOptSnap.visionOneBus.processEvery);
    }];
    
    
    self.stepsonParentTextField = [SuchOptSnap saturateTatarSizeDeprecateAxesAccount];
    self.stepsonParentTextField.enabled = NO;
    self.stepsonParentTextField.skin = self.zipDropWork[SuchOptSnap.visionOneBus.feetArcheryKey];
    [self acrossQueryingShapeGoogleAnchorMiddleView:self.stepsonParentTextField skin:SuchOptSnap.eyeAndFlatThin.trackingMobileThirdMoodLetter];
    [self.view addSubview:self.stepsonParentTextField];
    [self.stepsonParentTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.andIntensityTextField.mas_bottom).offset(SuchOptSnap.visionOneBus.playBuildSin);
        make.left.right.equalTo(self.andIntensityTextField);
        make.height.mas_equalTo(SuchOptSnap.visionOneBus.processEvery);
    }];
    
    
    UIButton *telephotoButton = [SuchOptSnap pulseDeletionCanPressRestoredColor:SuchOptSnap.eyeAndFlatThin.clockSunPersistInfinityEgg];
    [telephotoButton addTarget:self dogWay:@selector(eulerClippingUtteranceWinLongAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:telephotoButton];
    [telephotoButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.stepsonParentTextField.mas_bottom).offset(SuchOptSnap.visionOneBus.playBuildSin);
        make.left.right.equalTo(self.stepsonParentTextField);
        make.height.mas_equalTo(SuchOptSnap.visionOneBus.weightWayHow);
    }];
    
    
    self.pinkDisplayButton = [SuchOptSnap designBehaviorsBottomWeekdayMay:SuchOptSnap.eyeAndFlatThin.pedometerLargeQuechuaResourcesRestAtomic];
    [self.pinkDisplayButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.pinkDisplayButton addTarget:self dogWay:@selector(nominallyNameOccurTransientTransmitAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.pinkDisplayButton];
    [self.pinkDisplayButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(telephotoButton.mas_bottom).offset(SuchOptSnap.visionOneBus.jumpHelpers);
        make.centerX.equalTo(self.view);
    }];
}

- (void)acrossQueryingShapeGoogleAnchorMiddleView:(UITextField *)backField skin:(NSString *)skin
{
    CGRect liter = {{0,0},CGSizeMake(SuchOptSnap.visionOneBus.weightWayHow, SuchOptSnap.visionOneBus.processEvery)};
    UILabel *republic = [[UILabel alloc] initWithFrame:liter];
    republic.skin = skin;
    republic.textColor = UIColor.redColor;
    backField.leftViewMode = UITextFieldViewModeAlways;
    backField.leftView = republic;
}

- (void)nominallyNameOccurTransientTransmitAction:(UIButton *)sender {
    [[TelephonyManager shared] bounceGrayLatvianBrownSoftballAssameseViewController:self.navigationController];
}

- (void)eulerClippingUtteranceWinLongAction:(UIButton *)sender {
    sender.hidden = YES;
    self.logTitleLabel.hidden = YES;
    self.lineBleedView.hidden = NO;
    self.fadeWrongView.hidden = NO;
    self.pinkDisplayButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.earTag.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(SuchOptSnap.visionOneBus.posterNormalizeDependingProduceScalingWidth, SuchOptSnap.visionOneBus.leadCharOuncesKernelStormIndent-SuchOptSnap.visionOneBus.cousinPolish));
    }];
    [self.andIntensityTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.lineBleedView.mas_bottom).offset(SuchOptSnap.visionOneBus.playBuildSin);
    }];
    [self.view layoutIfNeeded];
    
    BOOL smart = [[[[NSBundle mainBundle] infoDictionary] turnOwn] containsObject:SuchOptSnap.visionOneBus.goldenDateOutOrderingRequestUsesReload];
    if (!smart) {
        self.expireLineButton.hidden = NO;
        [FunAlertView bagRunAwayTelephotoLatencyDuplex:nil message:SuchOptSnap.eyeAndFlatThin.textureBehaveStairLowEnsure completion:nil];
        return;
    }
    CGSize size = self.view.liter.size;
    size.height -= SuchOptSnap.visionOneBus.operandArrow;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:hasSwedishCharacterMagentaVerticalBundle:turnHueInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image hasSwedishCharacterMagentaVerticalBundle:(NSError *)error turnHueInfo:(void *)turnHueInfo
{
    
    if(!error){
        [[TelephonyManager shared] bounceGrayLatvianBrownSoftballAssameseViewController:self.navigationController];
        [SawToast removes:SuchOptSnap.eyeAndFlatThin.speakProducedPartiallyCutoffBirth];
    }else {
        self.expireLineButton.hidden = NO;
        [FunAlertView bagRunAwayTelephotoLatencyDuplex:nil message:SuchOptSnap.eyeAndFlatThin.textureBehaveStairLowEnsure completion:nil];
    }
}

@end
