Created
April 18, 2011 05:32
-
-
Save johankool/924859 to your computer and use it in GitHub Desktop.
Alternative approach to have consistent UILabel styling.
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
// | |
// KVStylesheet.m | |
// Koolistov | |
// | |
// Created by Johan Kool on 15-04-2011. | |
// Copyright 2011 Koolistov. Use as you desire. | |
// | |
#import "KVStylesheet.h" | |
@implementation KVStylesheet | |
+ (void)applyMainStyleToLabel:(UILabel *)label { | |
label.textColor = [UIColor greenColor]; | |
label.font = [UIFont systemFontOfSize:36.0f]; | |
} | |
+ (void)applyAlternateStyleToLabel:(UILabel *)label { | |
[self applyMainStyleToLabel:label]; | |
label.textColor = [UIColor redColor]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment