## #pragma mark -输出frame
NSLog(@" view frame = %@", NSStringFromCGRect(<#CGRect rect#>));
##pragma mark -屏幕尺寸
#define KHFullScreenWidth [UIScreen mainScreen].bounds.size.width
#define KHFullScreenHeight [UIScreen mainScreen].bounds.size.height
##//导航条高度
#define KHNavBarHeight44
##//状态栏高度
#define KHStatusBarHeight [[UIApplication sharedApplication] statusBarFrame].size.height
*#pragma mark -颜色转换
##//十进制颜色转换
#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0green:(g)/255.0blue:(b)/255.0alpha:1]
##//十六进制颜色转换(0xFFFFFF)
#define HEXRGBCOLOR(hex) [UIColor colorWithRed:((float)((hex &0xFF0000) >>16))/255.0green:((float)((hex &0xFF00) >>8))/255.0blue:((float)(hex &0xFF))/255.0alpha:1.0]
## #pragma mark -适配
#define SYSTEM_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]
网友评论