创建新应用常用的宏定义

#define kWidth [UIScreen mainScreen].bounds.size.width
#define kHeight [UIScreen mainScreen].bounds.size.height
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define RGB(r,g,b) RGBA(r,g,b,1.0f)
#define STAND_DEFAULT [NSUserDefaults standardUserDefaults]
#define NOTIFICATION_DEFAULT [NSNotificationCenter defaultCenter]
posted @ 2017-08-22 10:04  wzdevelop  阅读(168)  评论(0编辑  收藏  举报