static NSInteger const CBBIndexOne =  1;
static NSInteger const CBBIndexTwo =  2;
static NSInteger const CBBIndexThree =  3;
static NSInteger const CBBIndexFour =  4;
static NSInteger const CBBIndexSix =  6;
static NSInteger const CBBIndexSeven =  7;
static NSInteger const CBBIndexEight =  8;

static NSInteger const CBBRowHeightFifty =  50;
static NSInteger const CBBRowHeightSixtySix =  66;
static NSInteger const CBBRowHeightSixtyTwo =  62;
static NSInteger const CBBRowHeightOneTen =  110;
static NSInteger const CBBRowHeightOneEightEight =  188;
static NSInteger const CBBRowHeightTwoHundred =  200;
static NSInteger const CBBRowHeightThirtySix =  36;
By sulthan, 2019-08-15 10:55:57
    UIButton * btn = [UIButton new];
    [btn addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    
    //May god have mercy of me
    [[btn titleLabel] setFont:[UIFont systemFontOfSize:14 weight:UIFontWeightMedium]];
    [btn setTitle:[NSString stringWithFormat:@"  %@  ", btnTxt] forState:UIControlStateNormal];
    [btn sizeToFit];
    [btn setTitle:btnTxt forState:UIControlStateNormal];

Why keep playing with label padding or insets when you can add spaces?

By Shy developer, 2017-12-12 14:32:37