“wangdongchao” 1 gadu atpakaļ
vecāks
revīzija
ab461c09cd
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      WMBase/WMBase/TT_GeneralProfile.h

+ 4 - 1
WMBase/WMBase/TT_GeneralProfile.h

@@ -138,7 +138,10 @@ isPhoneX = [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bo
 #define KScreenWidth  [UIScreen mainScreen].bounds.size.width
 
 
-
+// 弱引用self
+#define K_WEAK_SELF     __weak typeof(self) weakSelf = self;
+// 强引用self
+#define K_STRONG_SELF   __strong typeof(self) self = weakSelf;