在我们日常的项目中,合理的使用宏定义,会大大减少我们的代码量,以及代码的可读性,为方便读者使用,总结如下: pragma mark - Application相关 /// /// @name Application /// #define APPLICATION [UIApplication sha ...
分类:
移动开发 时间:
2018-07-19 10:42:52
阅读次数:
194
1、第三方框架:Toast 2、第三方框架:MBProgressHUD ...
分类:
其他好文 时间:
2018-07-15 00:52:37
阅读次数:
280
-------------------------------
``` Objective-C
/** 判断是否为 iPhone 5SE */
#define iPhone5SE [[UIScreen mainScreen] bounds].size.width == 320.0f && [[UIS... ...
分类:
其他好文 时间:
2018-07-15 00:52:12
阅读次数:
287
---------------------------------
``` Objective-C
#define UserDefaults [NSUserDefaults standardUserDefaults]
#define SharedApplication [UIApplication ... ...
分类:
其他好文 时间:
2018-07-15 00:51:54
阅读次数:
223
----------------------------
``` Objective-C
/** 设置view圆角和边框 */
#define kViewBorderRadius(View, Radius, Width, Color)
[View.layer setCornerRadius:(... ...
分类:
其他好文 时间:
2018-07-15 00:50:46
阅读次数:
134
--------------------------
``` Objective-C
/** 获取temp */
#define kPathTemp NSTemporaryDirectory() /** 获取沙盒 Document */
#define kPathDocument [NSSearch... ...
分类:
其他好文 时间:
2018-07-15 00:50:18
阅读次数:
130
-----------------------------------
``` Objective-C
/** 设置随机颜色 */
#define CHRandomColor [UIColor colorWithRed:arc4random_uniform(256)/255.0 green:arc4... ...
分类:
其他好文 时间:
2018-07-15 00:50:03
阅读次数:
190