码迷,mamicode.com
首页 > 其他好文 > 详细

创建新应用常用的宏定义

时间:2017-08-22 10:46:43      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:with   define   alpha   user   font   cat   span   宏定义   standard   

#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]

创建新应用常用的宏定义

标签:with   define   alpha   user   font   cat   span   宏定义   standard   

原文地址:http://www.cnblogs.com/wzdevelop/p/7410170.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!