






#import "CatArmHighManyButton.h"
#import "LambdaPatch.h"
#import "UIImage+OneImage.h"
#import "ArtsWalkPinchController.h"
#import "UIImage+OneImage.h"
#import "UIColor+AreColor.h"

@implementation CatArmHighManyButton

- (instancetype)initPongLoadBagViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.artSawFinishViewController = viewController;
        [self darkenTamilProvidingFinderFormatted];
    }
    return self;
}


- (void)darkenTamilProvidingFinderFormatted {
    
    NSArray *priceHeightAllocateSuggestOuter = [TurnCornerPlanarDryTrimming updateServerRankIllIll:[RowsTarget class]];
    
    
    NSString *whoBedHisSoundCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block RowsTarget *wordPageSudden = nil;
    [priceHeightAllocateSuggestOuter enumerateObjectsUsingBlock:^(RowsTarget *country, NSUInteger idx, BOOL *stop) {
        if ([country.calendarBurnCode caseInsensitiveCompare:whoBedHisSoundCode] == NSOrderedSame) {
            wordPageSudden = country;
            *stop = YES; 
        }
    }];
    self.outFatalCubicIntensityFinal = wordPageSudden;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",LambdaPatch.faxChildBend.getOddWireUse, wordPageSudden.publicAgeCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *discreteImage = [UIImage campaignStaleItsTapProviderName:LambdaPatch.faxChildBend.whitePatternThirdRadialDigitizedReporting];
    
    
    CGSize updatingEndSize = CGSizeMake(13, 13); 
    
    
    UIImage *didAddImage = [self denyHasTaskIllImage:discreteImage listJumpSize:updatingEndSize];
    
    
    UIImage *templateImage = [didAddImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
    [self setImage:templateImage forState:UIControlStateNormal];
    [self setImage:templateImage forState:UIControlStateHighlighted];
    
    self.tintColor = UIColor.darkGrayColor;
    
    
    self.imageView.contentMode = UIViewContentModeScaleAspectFit;
    
    
    self.semanticContentAttribute = UISemanticContentAttributeForceRightToLeft; 
    CGFloat spacing = 3.0; 
    self.imageEdgeInsets = UIEdgeInsetsMake(0, spacing, 0, -spacing);  
    self.titleEdgeInsets = UIEdgeInsetsMake(0, -spacing, 0, spacing);   
    
    
    [self setBackgroundColor:UIColor.clearColor];
    [self setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [self setTitleColor:UIColor.lightGrayColor forState:UIControlStateHighlighted];
    self.titleLabel.font = [UIFont systemFontOfSize:16];

    
    self.contentEdgeInsets = UIEdgeInsetsMake(8, 12, 8, 12); 
    
    
    [self sizeToFit];
    
    
    [self addTarget:self action:@selector(drumPongAreClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)denyHasTaskIllImage:(UIImage *)image listJumpSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat messageFix = targetSize.width / image.size.width;
    CGFloat periodicOdd = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(messageFix, periodicOdd);
    
    
    CGRect catBusRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - catBusRect.size.width) / 2.0,
                               (targetSize.height - catBusRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                catBusRect.size.width,
                                catBusRect.size.height)];
    
    UIImage *capImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return capImage;
}


- (void)drumPongAreClicked {
    OceanRequestSliderTapSpecifierGuestViewController *saw = [OceanRequestSliderTapSpecifierGuestViewController new];
    saw.animatingDelegate = self;
    [self.artSawFinishViewController.navigationController pushViewController:saw animated:NO];
}

- (void)forbidChangeLibrariesNoneNegativeDeliveredBigDog:(RowsTarget *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",LambdaPatch.faxChildBend.getOddWireUse, country.publicAgeCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.outFatalCubicIntensityFinal = country;
}

- (void)dealloc {
    
}
@end
