Skip to content

Instantly share code, notes, and snippets.

@shingohry
Last active August 29, 2015 14:00
Show Gist options
  • Save shingohry/11202255 to your computer and use it in GitHub Desktop.
Save shingohry/11202255 to your computer and use it in GitHub Desktop.
UITableView grouped label settings for iOS6/5
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