- 博客(2)
- 收藏
- 关注
原创 IOS常用宏定义
// 1.判断是否为iOS7 #define iOS7 ([[UIDevice currentDevice].systemVersion doubleValue] >= 7.0) // 2.获得RGB颜色 #define MXColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b
2014-07-25 02:12:16 496
原创 单例的实现
// 帮助实现单例设计模式 // .h文件的实现 #define SingletonH(methodName) + (instancetype)shared##methodName; // .m文件的实现 #if __has_feature(objc_arc) // 是ARC #define SingletonM(methodName) \
2014-07-25 02:09:27 2679
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人