






#import "LemmaScaleLockButton.nap"
#import "BestEastPut.nap"
#import "UIImage+SpaImage.nap"
#import "MoodOnlyStaleController.nap"
#import "UIImage+SpaImage.nap"
#import "UIColor+LowColor.nap"

@implementation LemmaScaleLockButton

- (instancetype)initMusicMenHitViewController:(AllViewController *)viewController {
    self = [super init];
    if (self) {
        self.waxFlagDutchViewController = viewController;
        [self sliceStalledStoppedPrettyMandarin];
    }
    return self;
}


- (void)sliceStalledStoppedPrettyMandarin {
    
    NSArray *finderContainedWindowsSnapPlural = [RowSwapLiterIndoorLeast fatStableCallSunWin:[ManWetDraw class]];
    
    
    NSString *givenFatSpaCupCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block ManWetDraw *icyRealHalfToo = nil;
    [finderContainedWindowsSnapPlural enumerateObjectsUsingBlock:^(ManWetDraw *pintAir, NSUInteger idx, BOOL *warp) {
        if ([pintAir.aliveTextureCode caseInsensitiveCompare:givenFatSpaCupCode] == NSOrderedSame) {
            icyRealHalfToo = pintAir;
            *warp = YES; 
        }
    }];
    self.yetObservingDiscoveryLearnLearned = icyRealHalfToo;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",BestEastPut.didNecessary.cacheVoiceMan, icyRealHalfToo.northManyCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *matchOneImage = [UIImage inviteeExponentPartialDigitEvaluateName:BestEastPut.didNecessary.busFailDiscardsRowChromaEsperanto];
    
    
    CGSize dueTildeTabSize = CGSizeMake(13, 13); 
    
    
    UIImage *markupImage = [self sameAlienRebusImage:matchOneImage twoResetSize:dueTildeTabSize];
    
    
    [self setImage:markupImage forState:UIControlStateNormal];
    [self setImage:[markupImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate] forState:UIControlStateHighlighted]; 
    
    
    self.imageView.contentMode = UIViewContentModeScaleAspectFit;
    
    
    self.semanticContentAttribute = UISemanticContentAttributeForceRightToLeft; 
    CGFloat latvian = 3.0; 
    self.imageEdgeInsets = UIEdgeInsetsMake(0, latvian, 0, -latvian);  
    self.titleEdgeInsets = UIEdgeInsetsMake(0, -latvian, 0, latvian);   
    
    
    [self setBackgroundImage:[UIImage buddyWetWasWinColor:[BestEastPut.sawCreateColor weeklyForkWarnJumpPurpleBut:8]] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage buddyWetWasWinColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]]
                   forState:UIControlStateHighlighted];
    self.titleLabel.font = [UIFont systemFontOfSize:16];
    self.layer.cornerRadius = 2.f;
    self.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMinXMaxYCorner;
    self.layer.masksToBounds = YES;
    
    
    self.contentEdgeInsets = UIEdgeInsetsMake(8, 12, 8, 12); 
    
    
    [self sizeToFit];
    
    
    [self addTarget:self armCap:@selector(wayHowCoastClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)sameAlienRebusImage:(UIImage *)image twoResetSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat halfPhrase = targetSize.width / image.size.width;
    CGFloat kitBaseball = targetSize.height / image.size.height;
    CGFloat blurTwoJump = MIN(halfPhrase, kitBaseball);
    
    
    CGRect socialRect = CGRectMake(0, 0,
                                  image.size.width * blurTwoJump,
                                  image.size.height * blurTwoJump);
    
    
    CGPoint sonSaw = CGPointMake((targetSize.width - socialRect.size.width) / 2.0,
                               (targetSize.height - socialRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(sonSaw.x, sonSaw.y,
                                socialRect.size.width,
                                socialRect.size.height)];
    
    UIImage *itsImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return itsImage;
}


- (void)wayHowCoastClicked {
    OffsetUptimeHundredsOtherAssertionCurlViewController *tap = [OffsetUptimeHundredsOtherAssertionCurlViewController new];
    tap.zipRemoteDelegate = self;
    [self.waxFlagDutchViewController.navigationController loopViewController:tap animated:NO];
}

- (void)modelEscapesPoloIndoorUnfocusedEggReachableLose:(ManWetDraw *)pintAir {
    NSString *title = [NSString stringWithFormat:@"%@%@",BestEastPut.didNecessary.cacheVoiceMan, pintAir.northManyCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.yetObservingDiscoveryLearnLearned = pintAir;
}

- (void)haveIll {
    
}
@end
