|
|
@@ -23,14 +23,13 @@
|
|
|
//当前控制器的宽高度
|
|
|
#define self_width self.view.frame.size.width
|
|
|
#define self_height self.view.frame.size.height
|
|
|
-
|
|
|
+//屏幕的宽高度
|
|
|
+#define kWidth [UIScreen mainScreen].bounds.size.width
|
|
|
+#define kHeight [UIScreen mainScreen].bounds.size.height
|
|
|
//颜色
|
|
|
#define HexColor(h) [UIColor colorWithHexString:(h)]
|
|
|
#define RGB(r, g, b, A) [UIColor colorWithRed:((r) / 255.0) green:((g) / 255.0) blue:((b) / 255.0) alpha:(A)]
|
|
|
|
|
|
-//屏幕的宽高度
|
|
|
-#define kWidth [UIScreen mainScreen].bounds.size.width
|
|
|
-#define kHeight [UIScreen mainScreen].bounds.size.height
|
|
|
|
|
|
//系统版本
|
|
|
#define iOS11Early [[[UIDevice currentDevice] systemVersion] floatValue] < 11.0
|