Skip to content

Instantly share code, notes, and snippets.

@swarut
Created October 7, 2012 20:42
Show Gist options
  • Save swarut/3849533 to your computer and use it in GitHub Desktop.
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
#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