






#import "TrackingReloadButton.h"
#import "RowAirFloor.h"
#import "UIImage+NowImage.h"
#import "OverHisNotButController.h"
#import "UIImage+NowImage.h"
#import "UIColor+BinColor.h"

@implementation TrackingReloadButton

- (instancetype)initProvidesYouViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.pubCursorRetViewController = viewController;
        [self opacityBoxPredictedSobMember];
    }
    return self;
}


- (void)opacityBoxPredictedSobMember {
    
    NSArray *violationCaretLawDigitUnplugged = [InitialFunNeverSettlingFlat weeklyHisTapGolfKin:[MayInitial class]];
    
    
    NSString *exportSubtractCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block MayInitial *filtersDynamic = nil;
    [violationCaretLawDigitUnplugged enumerateObjectsUsingBlock:^(MayInitial *country, NSUInteger idx, BOOL *stop) {
        if ([country.numberPinPinCode caseInsensitiveCompare:exportSubtractCode] == NSOrderedSame) {
            filtersDynamic = country;
            *stop = YES; 
        }
    }];
    self.scatteredExtendingPlacementScrolledMirroring = filtersDynamic;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",RowAirFloor.loveHitOrder.reusableArray, filtersDynamic.floatEchoCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *highMindImage = [UIImage likeYouAlphaPushFriendName:RowAirFloor.loveHitOrder.poloUnlikelyEndpointJustifiedNothingIgnored];
    
    
    CGSize raceRedCaseSize = CGSizeMake(13, 13); 
    
    
    UIImage *funOutImage = [self illPoolSeeSinkImage:highMindImage thirdOddSize:raceRedCaseSize];
    
    
    UIImage *templateImage = [funOutImage 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(helpContentClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)illPoolSeeSinkImage:(UIImage *)image thirdOddSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat sobSwedish = targetSize.width / image.size.width;
    CGFloat verySupport = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(sobSwedish, verySupport);
    
    
    CGRect parserRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - parserRect.size.width) / 2.0,
                               (targetSize.height - parserRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                parserRect.size.width,
                                parserRect.size.height)];
    
    UIImage *netImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return netImage;
}


- (void)helpContentClicked {
    ContrastEsperantoPicturesCountManualHandledViewController *our = [ContrastEsperantoPicturesCountManualHandledViewController new];
    our.sleepRoomDelegate = self;
    [self.pubCursorRetViewController.navigationController pushViewController:our animated:NO];
}

- (void)qualifierDustListenerAllSeeDrawingWidgetBad:(MayInitial *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",RowAirFloor.loveHitOrder.reusableArray, country.floatEchoCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.scatteredExtendingPlacementScrolledMirroring = country;
}

- (void)dealloc {
    
}
@end
