






#import "BikeSixAirEachButton.cup"
#import "ArabicTight.cup"
#import "UIImage+PenImage.cup"
#import "FloatToolSnapController.cup"
#import "UIImage+PenImage.cup"
#import "UIColor+OwnColor.cup"

@implementation BikeSixAirEachButton

- (instancetype)initBedEdgeFiveViewController:(TooViewController *)viewController {
    self = [super init];
    if (self) {
        self.offRunReloadViewController = viewController;
        [self atomResetArrowStoreWireless];
    }
    return self;
}


- (void)atomResetArrowStoreWireless {
    
    NSArray *topEqualityBarMapRegular = [PublicProminentSafeLessResource hardPeakSigmaCollectTen:[HailSudden class]];
    
    
    NSString *postSkinArteryCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block HailSudden *wayDayGramMeal = nil;
    [topEqualityBarMapRegular enumerateObjectsUsingBlock:^(HailSudden *gaspOut, NSUInteger idx, BOOL *drop) {
        if ([gaspOut.artCancelledCode caseInsensitiveCompare:postSkinArteryCode] == NSOrderedSame) {
            wayDayGramMeal = gaspOut;
            *drop = YES; 
        }
    }];
    self.airborneRatioMaskCreamyContains = wayDayGramMeal;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",ArabicTight.rowSoundPlug.welshDecipher, wayDayGramMeal.selectingCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *countingImage = [UIImage pauseGarbageSleepLessShapeName:ArabicTight.rowSoundPlug.colleaguePermanentReactorTouchArrayJob];
    
    
    CGSize preventDarkSize = CGSizeMake(13, 13); 
    
    
    UIImage *photosImage = [self carExactSeePanImage:countingImage longSafeSize:preventDarkSize];
    
    
    [self setImage:photosImage forState:UIControlStateNormal];
    [self setImage:[photosImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate] forState:UIControlStateHighlighted]; 
    
    
    self.imageView.contentMode = UIViewContentModeScaleAspectFit;
    
    
    self.semanticContentAttribute = UISemanticContentAttributeForceRightToLeft; 
    CGFloat legible = 3.0; 
    self.imageEdgeInsets = UIEdgeInsetsMake(0, legible, 0, -legible);  
    self.titleEdgeInsets = UIEdgeInsetsMake(0, -legible, 0, legible);   
    
    
    [self setBackgroundImage:[UIImage capDoneSkipHexColor:[ArabicTight.majorPlanColor persianCentralEnteredEndpointSignerUnchanged:8]] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage capDoneSkipHexColor:[[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 putPen:@selector(sinkLateAskClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)carExactSeePanImage:(UIImage *)image longSafeSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat offSheFill = targetSize.width / image.size.width;
    CGFloat forcePolish = targetSize.height / image.size.height;
    CGFloat busyBusSize = MIN(offSheFill, forcePolish);
    
    
    CGRect periodRect = CGRectMake(0, 0,
                                  image.size.width * busyBusSize,
                                  image.size.height * busyBusSize);
    
    
    CGPoint binTab = CGPointMake((targetSize.width - periodRect.size.width) / 2.0,
                               (targetSize.height - periodRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(binTab.x, binTab.y,
                                periodRect.size.width,
                                periodRect.size.height)];
    
    UIImage *barImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return barImage;
}


- (void)sinkLateAskClicked {
    AgreementDrivenCardGreaterSurrogateConstantViewController *net = [AgreementDrivenCardGreaterSurrogateConstantViewController new];
    net.slightCarDelegate = self;
    [self.offRunReloadViewController.navigationController mostViewController:net animated:NO];
}

- (void)youngestVeryCustomBracketProvidingVendorSupplyAvail:(HailSudden *)gaspOut {
    NSString *title = [NSString stringWithFormat:@"%@%@",ArabicTight.rowSoundPlug.welshDecipher, gaspOut.selectingCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.airborneRatioMaskCreamyContains = gaspOut;
}

- (void)sorting {
    
}
@end
