//Declaration
#define GET_BOLD_FONT_WITH_SIZE(__SIZE) ([UIFont fontWithName:FONT_BOLD size:__SIZE])
#define GET_REGULAR_FONT_WITH_SIZE(__SIZE) ([UIFont fontWithName:FONT_REGULAR size:__SIZE])
#define IMAGE(imageName) (UIImage *)[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:imageName ofType:IMAGE_TYPE_PNG]]
#define FLOAT_COLOR_VALUE(n) (n)/255.0
#define DISCLAIMERURL @"http://www.google.com"
#define VIEW_FRAME CGRectMake(0, 0, 320, 95)
#define FLOAT_COLOR_VALUE(n) (n)/255.0
#define DISCLAIMERURL @"http://www.google.com"
#define VIEW_FRAME CGRectMake(0, 0, 320, 95)
//Usage
cancelButton.titleLabel.font=GET_BOLD_FONT_WITH_SIZE(15);
[cancelButton setBackgroundImage:IMAGE(@"buttonWhiteSmall") forState:UIControlStateNormal];
notes.font=GET_REGULAR_FONT_WITH_SIZE(14);
[self.layer setBorderColor:[[UIColor colorWithRed:FLOAT_COLOR_VALUE(112) green:FLOAT_COLOR_VALUE(105) blue:FLOAT_COLOR_VALUE(159) alpha:0.50] CGColor]];
NSString *strWebsiteUlr = [NSString stringWithFormat:DISCLAIMERURL];
self.frame=VIEW_FRAME;
[self.layer setBorderColor:[[UIColor colorWithRed:FLOAT_COLOR_VALUE(112) green:FLOAT_COLOR_VALUE(105) blue:FLOAT_COLOR_VALUE(159) alpha:0.50] CGColor]];
NSString *strWebsiteUlr = [NSString stringWithFormat:DISCLAIMERURL];
self.frame=VIEW_FRAME;
No comments:
Post a Comment