






#import "PanBigLookTwoViewController.h"
#import "SexToast.h"
#import "TheManInfo.h"

@interface PanBigLookTwoViewController ()

@property (nonatomic, strong) UIImageView *convergedView;
@property (nonatomic, strong) UIButton *shearEarPutButton;
@property (nonatomic, strong) UIView *civilFootView;
@property (nonatomic, strong) UILabel *touchHueLabel;
@property (nonatomic, strong) UITextField *uniformYearsTextField;
@property (nonatomic, strong) UITextField *stairWhoPitchTextField;
@end

@implementation PanBigLookTwoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.cascadeNotButton.hidden = YES;
    
    if ([TheManInfo sexHourlyArraySlovenianTextImage]) {
        self.convergedView = [[UIImageView alloc] initWithImage:[TheManInfo sexHourlyArraySlovenianTextImage]];
        [self.view addSubview:self.convergedView];
        self.convergedView.hidden = YES;
        [self.convergedView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(RuleListCut.coloredDraft.rareErrorMan);
            make.left.equalTo(self.markWristButton.mas_right);
            make.top.equalTo(self.view).offset(RuleListCut.coloredDraft.redPeriodIll);
        }];
    }
    
    self.civilFootView = [RuleListCut civilFootView];
    self.civilFootView.hidden = YES;
    [self.view addSubview:self.civilFootView];
    [self.civilFootView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([TheManInfo sexHourlyArraySlovenianTextImage]) {
            make.centerY.equalTo(self.convergedView);
            make.left.equalTo(self.convergedView.mas_right).offset(RuleListCut.coloredDraft.asleepScene);
        }else {
            make.top.equalTo(self.view).offset(RuleListCut.coloredDraft.redPeriodIll);
            make.left.equalTo(self.markWristButton.mas_right).offset(RuleListCut.coloredDraft.asleepScene);
        }
        make.right.equalTo(self.cascadeNotButton.mas_left);
        make.height.mas_equalTo(RuleListCut.coloredDraft.rareErrorMan);
    }];
    
    self.touchHueLabel = [RuleListCut swimmingWeeklyFontMenstrualFactories:RuleListCut.costSonKnowKit.boundModifiersOverlayAmharicNetwork];
    self.touchHueLabel.numberOfLines = 0;
    [self.view addSubview:self.touchHueLabel];
    [self.touchHueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(RuleListCut.coloredDraft.guestSendIll);
        make.left.mas_equalTo(RuleListCut.coloredDraft.capShakeSlow);
        make.right.mas_equalTo(-RuleListCut.coloredDraft.capShakeSlow);
    }];
    
    
    self.uniformYearsTextField = [RuleListCut radialLiteralParserFarPlanarAccount];
    self.uniformYearsTextField.enabled = NO;
    self.uniformYearsTextField.text = self.mostlyPlate[RuleListCut.coloredDraft.onePinDatumName];
    [self eraPhoneHurricaneOneZipMalteseView:self.uniformYearsTextField text:RuleListCut.costSonKnowKit.numeratorChromiumWrongAndChain];
    [self.view addSubview:self.uniformYearsTextField];
    [self.uniformYearsTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.touchHueLabel.mas_bottom).offset(RuleListCut.coloredDraft.prominentEye);
        make.left.mas_equalTo(RuleListCut.coloredDraft.herLimitSafe);
        make.right.mas_equalTo(-RuleListCut.coloredDraft.herLimitSafe);
        make.height.mas_equalTo(RuleListCut.coloredDraft.appleLogical);
    }];
    
    
    self.stairWhoPitchTextField = [RuleListCut radialLiteralParserFarPlanarAccount];
    self.stairWhoPitchTextField.enabled = NO;
    self.stairWhoPitchTextField.text = self.mostlyPlate[RuleListCut.coloredDraft.useArmFlushKey];
    [self eraPhoneHurricaneOneZipMalteseView:self.stairWhoPitchTextField text:RuleListCut.costSonKnowKit.courseRemainingSelectorsSheSafety];
    [self.view addSubview:self.stairWhoPitchTextField];
    [self.stairWhoPitchTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.uniformYearsTextField.mas_bottom).offset(RuleListCut.coloredDraft.prominentEye);
        make.left.right.equalTo(self.uniformYearsTextField);
        make.height.mas_equalTo(RuleListCut.coloredDraft.appleLogical);
    }];
    
    
    UIButton *rotateLowButton = [RuleListCut nominallyObstacleUnchangedBlobHybridColor:RuleListCut.costSonKnowKit.beenSoccerPhysicalDaysAmharic];
    [rotateLowButton addTarget:self action:@selector(viabilitySpotlightFlattenGigabitsSpellAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:rotateLowButton];
    [rotateLowButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.stairWhoPitchTextField.mas_bottom).offset(RuleListCut.coloredDraft.prominentEye);
        make.left.right.equalTo(self.stairWhoPitchTextField);
        make.height.mas_equalTo(RuleListCut.coloredDraft.rareErrorMan);
    }];
    
    
    self.shearEarPutButton = [RuleListCut returnSupportsLettishFormatsWrap:RuleListCut.costSonKnowKit.entitiesLingerAmbiguityPlusMixDecoding];
    [self.shearEarPutButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.shearEarPutButton addTarget:self action:@selector(dueDissolveWalkingHierarchySheAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.shearEarPutButton];
    [self.shearEarPutButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(rotateLowButton.mas_bottom).offset(RuleListCut.coloredDraft.curveRunWax);
        make.centerX.equalTo(self.view);
    }];
}

- (void)eraPhoneHurricaneOneZipMalteseView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(RuleListCut.coloredDraft.rareErrorMan, RuleListCut.coloredDraft.appleLogical)};
    UILabel *songBeat = [[UILabel alloc] initWithFrame:frame];
    songBeat.text = text;
    songBeat.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = songBeat;
}

- (void)dueDissolveWalkingHierarchySheAction:(UIButton *)sender {
    [[PopParserManager shared] receivesOriginInferPencilItsHandledViewController:self.navigationController];
}

- (void)viabilitySpotlightFlattenGigabitsSpellAction:(UIButton *)sender {
    sender.hidden = YES;
    self.touchHueLabel.hidden = YES;
    self.civilFootView.hidden = NO;
    self.convergedView.hidden = NO;
    self.shearEarPutButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(RuleListCut.coloredDraft.artVisionRenderedSelectMidWidth, RuleListCut.coloredDraft.eraTokenIntentsProducerSingularInterrupt-RuleListCut.coloredDraft.malteseClamp));
    }];
    [self.uniformYearsTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.civilFootView.mas_bottom).offset(RuleListCut.coloredDraft.prominentEye);
    }];
    [self.view layoutIfNeeded];
    
    BOOL enter = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:RuleListCut.coloredDraft.tooEarIndicesSourceSegmentAgreementLess];
    if (!enter) {
        self.cascadeNotButton.hidden = NO;
        [LowAlertView artFourBarUnitSeeWill:nil message:RuleListCut.costSonKnowKit.dominantGetFastCombineNormal completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= RuleListCut.coloredDraft.recordRepair;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:basqueMathDetachingReloadCentralWorkspace:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image basqueMathDetachingReloadCentralWorkspace:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[PopParserManager shared] receivesOriginInferPencilItsHandledViewController:self.navigationController];
        [SexToast writing:RuleListCut.costSonKnowKit.topCollectedTrailingTakeMid];
    }else {
        self.cascadeNotButton.hidden = NO;
        [LowAlertView artFourBarUnitSeeWill:nil message:RuleListCut.costSonKnowKit.dominantGetFastCombineNormal completion:nil];
    }
}

@end
