Created
October 7, 2012 20:42
-
-
Save swarut/3849533 to your computer and use it in GitHub Desktop.
Objective-C : Configure subviews of custom view in awakeFromNib method #objective-c #view #subview #awakefromnib
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
#import "HomeTitleView.h" | |
#import "UIFactory.h" | |
@implementation HomeTitleView | |
@synthesize ticketLabel; | |
@synthesize monthLabel; | |
- (id)initWithFrame:(CGRect)frame | |
{ | |
self = [super initWithFrame:frame]; | |
if (self) { | |
// Initialization code | |
} | |
return self; | |
} | |
- (id) initWithCoder:(NSCoder *)aDecoder{ | |
self = [super initWithCoder:aDecoder]; | |
if (self) { | |
} | |
return self; | |
} | |
- (void) configure{ | |
[monthLabel setFont:[UIFactory getFontForKey:@"home_month"]]; | |
[ticketLabel setFont:[UIFactory getFontForKey:@"home_ticket"]]; | |
} | |
- (void) awakeFromNib{ | |
[self configure]; | |
} | |
- (IBAction)viewAll:(id)sender { | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment