Last active
August 29, 2015 14:00
-
-
Save shingohry/11202255 to your computer and use it in GitHub Desktop.
UITableView grouped label settings for iOS6/5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static double const kFontSizeForTitleLabel = 17.0; | |
static NSString * const kColorHexStringForHeaderTitleLabel = @"#52586b"; | |
- (void)settingLabelForLessThaniOS7 | |
{ | |
CGRect labelRect = self.label.frame; | |
self.label.frame = CGRectMake(19, labelRect.origin.y, labelRect.size.width, labelRect.size.height); | |
self.label.backgroundColor = [UIColor clearColor]; | |
self.label.font = [UIFont boldSystemFontOfSize:kFontSizeForTitleLabel]; | |
self.label.shadowColor = [UIColor colorWithWhite:1.0 alpha:1]; | |
self.label.shadowOffset = CGSizeMake(0, 1); | |
self.label.textColor = [UIColor colorWithHex:kColorHexStringForHeaderTitleLabel]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment