ios常用宏定义
来源:互联网 发布:生物医学数据挖掘 pdf 编辑:程序博客网 时间:2024/04/28 21:34
#define ZLZIOS7 ([[[UIDevice currentDevice].systemVersion doubleValue] >= 7.0])
#define ZLZIPHONE5 (([[UIScreen mainScreen] bounds].size.height)>=568)
#define ZLZScreenHeight ([UIScreen mainScreen].applicationFrame.size.height)
#define ZLZScreenWidth ([UIScreen mainScreen].applicationFrame.size.width)
#define ZLZColorRGB(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define ZLZColorRGBA(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
#define RectX(rect) rect.origin.x
#define RectY(rect) rect.origin.y
#define RectWidth(rect) rect.size.width
#define RectHeight(rect) rect.size.height
#define ZLZRectSetWidth(rect, w) CGRectMake(RectX(rect), RectY(rect), w, RectHeight(rect))
#define ZLZRectSetHeight(rect, h) CGRectMake(RectX(rect), RectY(rect), RectWidth(rect), h)
#define ZLZRectSetX(rect, x) CGRectMake(x, RectY(rect), RectWidth(rect), RectHeight(rect))
#define ZLZRectSetY(rect, y) CGRectMake(RectX(rect), y, RectWidth(rect), RectHeight(rect))
#define ApplicationDelegate ((AppDelegate *)[[UIApplication sharedApplication] delegate])
#define ZLZUserDefaults [NSUserDefaults standardUserDefaults]
#define ZLZNotificationCenter [NSNotificationCenter defaultCenter]
#define ZLZSharedApplication [UIApplication sharedApplication]
0 0
- IOS 常用宏定义
- iOS常用宏定义
- iOS 常用宏定义
- ios常用宏定义
- IOS 常用宏定义
- IOS常用宏定义
- IOS 常用宏定义
- IOS常用宏定义
- ios常用宏定义
- IOS常用宏定义
- iOS常用宏定义
- IOS常用宏定义
- iOS常用宏定义
- IOS常用宏定义
- IOS常用宏定义
- iOS 常用宏定义
- ios常用宏定义
- iOS常用宏定义
- 商店买你伤筋动骨卜固原市独一份师范山东体育是短头发是的繁体
- hit2255
- 经典排序算法资料及 ruby 实现
- 扫地出门,受打击古生代讣u影士大夫是的法庭上
- 的无情刻都劝我离开的乐趣网的,‘权威
- ios常用宏定义
- wpf SnapsToDevicePixels
- DSAFSADASD
- HDU 2795 Billboard //线段树简单应用
- 发个Android平台上的注入代码
- this关键字的含义和final关键字的特点
- 啊数据库是的机构第丵一点一速度与
- CASDCASDASD
- ffmpeg教程和流媒体参考地址