1 2 3 4 5 6 7 8 9
| #define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width #define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
#define YLSRect(x, y, w, h) CGRectMake(SCREEN_WIDTH * x, SCREEN_HEIGHT * y, SCREEN_WIDTH * w, SCREEN_HEIGHT * h)
#define YLSColor(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:a]
#define YLSFont(f) SCREEN_WIDTH * f #define YLSSize(s) SCREEN_WIDTH * s
|